Hi
How to convert 12/16 bit dicom images to 8 bit dicom images using dcmtk 3.6.0.
Much Appreciated your help. Thanks.
Convert 12/16 bit dicom images to 8 bit dicom images
Moderator: Moderator Team
-
- Posts: 41
- Joined: Tue, 2013-07-23, 12:15
- Location: Chennai, India
-
- OFFIS DICOM Team
- Posts: 1511
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Re: Convert 12/16 bit dicom images to 8 bit dicom images
First of all, DCMTK 3.6.0 is really ancient now, being released in 2011, i.e. 10 years ago, and I would encourage you to migrate to a newer release.
One way of converting 12/16 bit DICOM images to 8 bit DICOM would be to apply a (lossless) JPEG compression with dcmcjpeg, followed by a decompression. This is not particularly efficient, but will do the job. With newer DCMTK versions, you will have to specify --pseudo-lossless --bits-force-8 when compressing the image to achieve the effect; I am not certain if 3.6.0 already had the "--pseudo-lossless" option. If it is not present, you can omit it as this was the default in older releases. Note that certain grayscale transformations will most probably be required to make the 8-bit image look "good". Check the VOI windowing options such as --min-max-window.
One way of converting 12/16 bit DICOM images to 8 bit DICOM would be to apply a (lossless) JPEG compression with dcmcjpeg, followed by a decompression. This is not particularly efficient, but will do the job. With newer DCMTK versions, you will have to specify --pseudo-lossless --bits-force-8 when compressing the image to achieve the effect; I am not certain if 3.6.0 already had the "--pseudo-lossless" option. If it is not present, you can omit it as this was the default in older releases. Note that certain grayscale transformations will most probably be required to make the 8-bit image look "good". Check the VOI windowing options such as --min-max-window.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest