TIFF image file conversion to DCM file

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
sriramg
Posts: 6
Joined: Tue, 2016-12-27, 18:22

TIFF image file conversion to DCM file

#1 Post by sriramg »

The query is regarding handling tiff image format as input and converting them into corresponding DCM file format. From DCMTK documentation, I could understand it supports only BMP and JPEG image formats as inputs. But in my case, the input is tiff image format. Kindly let me know DCMTK supports tiff image format as input.

Thanks in advance.

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: TIFF image file conversion to DCM file

#2 Post by Jan Schlamelcher »

DCMTK makes use of the third party library "libtiff" if it is available, however, a short grep in the source code shows that it is only used by dcm2pnm but not by img2dcm. So I think exporting DICOM files to tiff is possible, the other way around is not (may one of my colleagues correct me if I'm wrong). I would recommend using a tool like imagemagick prior to the img2dcm call as a workaround.

J. Riesmeier
DCMTK Developer
Posts: 2505
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: TIFF image file conversion to DCM file

#3 Post by J. Riesmeier »

Of course, it is possible to convert a TIFF image to DICOM format using DCMTK, but Jan is also correct: there is no ready-to-use tool or class for that purpose (yet).
As you can read in the documentation of img2dcm, up to now, it only supports JPEG and BMP as input format.

Post Reply

Who is online

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