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.
TIFF image file conversion to DCM file
Moderator: Moderator Team
-
- OFFIS DICOM Team
- Posts: 318
- Joined: Mon, 2014-03-03, 09:51
- Location: Oldenburg, Germany
Re: TIFF image file conversion to DCM file
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.
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: TIFF image file conversion to DCM file
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.
As you can read in the documentation of img2dcm, up to now, it only supports JPEG and BMP as input format.
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 1 guest