Convert 12/16 bit dicom images to 8 bit dicom images

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
mail2vguna
Posts: 41
Joined: Tue, 2013-07-23, 12:15
Location: Chennai, India

Convert 12/16 bit dicom images to 8 bit dicom images

#1 Post by mail2vguna » Wed, 2021-03-10, 09:28

Hi

How to convert 12/16 bit dicom images to 8 bit dicom images using dcmtk 3.6.0.

Much Appreciated your help. Thanks.
Thanks
Guna

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1293
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Convert 12/16 bit dicom images to 8 bit dicom images

#2 Post by Marco Eichelberg » Sun, 2021-03-28, 15:56

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest