dcmconv batch convert

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
bernte
Posts: 4
Joined: Thu, 2006-03-23, 14:53

dcmconv batch convert

#1 Post by bernte »

is there a possibility to convert from any (unknown transfer syntax) dicom file into a specific format (VR implicit,Compression none)? For example for batch converting: any inputfile -> specific outputfile.


Thanks in advance

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

dcmconv allows you to convert any uncompressed transfer syntax (i.e. explicit VR little endian, explicit VR big endian and implicit VR little endian) as well as deflated transfer syntax into a particular uncompressed or deflated transfer syntax. This conversion works reliably as long as the DICOM files are stored according to part 10 (i.e. have a meta header). Otherwise dcmconv tries to recognize the input transfer syntax automatically.

bernte
Posts: 4
Joined: Thu, 2006-03-23, 14:53

*push* :)

#3 Post by bernte »

The inputfile should look like the "howitshouldbe" file.

-----------------------------------------------------------------------------------Filename Byte Order Value Representation Compression
-----------------------------------------------------------------------------------
"howitshouldbe" little endian implicit none
"input" little endian explicit JPEG lossless



-----------------------------------------------------------------------------------

dcmconv.exe -f +ti input output
DcmElement: Unknown Tag & Data(4956,3346) larger (1229729838) that remaining bytes in file
Error: Invalid Stream: reading file: input

-----------------------------------------------------------------------------------

dcmconv.exe -f -ti +ti input output
DcmElement: Unknown Tag & Data(4956,3346) larger (1229729838) that remaining bytes in file
Error: Invalid Stream: reading file: input

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier »

  1. Your input format "little endian explicit JPEG lossless" is not supported by dcmconv as I wrote in my previous posting.
  2. Why are you using option "-f"? This tells dcmconv to read a data set without file meta information.

bernte
Posts: 4
Joined: Thu, 2006-03-23, 14:53

E.g. Efilm 1.53

#5 Post by bernte »

For example we have a JPEG lossless compressed file, to open it in Efilm 1.53 it must have the following format "little endian implicit".

It is possible to convert it with dcmconv OR do you have another way to do this?

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#6 Post by Jörg Riesmeier »


bernte
Posts: 4
Joined: Thu, 2006-03-23, 14:53

#7 Post by bernte »

danke erstmal ich werd das mal testen :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest