Viewing DICOM images with GIMP

2

1

I have the latest version if GIMP which is able to open up the DICOM images, but the images are not clear and not reconstructed properly. Is there any specific plugin which can help me?

sarat

Posted 2012-07-30T11:04:17.777

Reputation: 1 356

I too have this issue. I think part of the issue is that the pixel values that are allowed by DICOM are too large for GIMP to handle. For example, when I load a dicom image in OpenCV, each pixel requires a U16int, whereas the typical image only requires a U8int. Not sure yet what a solution would be... – Selah – 2018-09-27T19:49:04.810

1Do you have an example file you could upload to a file-sharing service? (post a link here). Can you post small extracts of screenshots that clearly illustrate how GIMP shows it and how it should be? – RedGrittyBrick – 2012-07-30T11:09:11.327

This might be a good source for sample images for screenshots, since I sort of suspect actual in use dicom images should and will be somewhat confidential. I VERY vaguely remember using this dicom viewer years ago - due to my rustiness in the subject, i will leave it as an exercise to the OP to add screenshots – Journeyman Geek – 2012-07-30T11:36:01.077

Do you have a "file-dicom" entry when you open GIMP and go to File/Preference/Folder/plugin? It should be built in, but if it's not, you can find the "file-dicom" plugin here.

– amiregelz – 2012-07-30T12:00:57.550

Answers

1

You might want to use MicroDicom, it does the reconstruction properly. You even have a windowing function.

Michael S.

Posted 2012-07-30T11:04:17.777

Reputation: 3 128

I usually go for MicroDicom but this time, I found that GIMP has a built-in option to display DICOM images but not perfect though – sarat – 2012-07-31T18:29:02.267

0

I suspect that GIMP only support a limited subset of the DICOM specification. Here is what I would try:

$ gdcmconv --raw --force input.dcm output.dcm

This will convert the input input.dcm DICOM with possibly an Encapsulated Transfer syntax representation into a more conventional raw Pixel Data element.

If you do not trust GDCM for doing the conversion, you could instead try:

$ gdcminfo input.dcm

This will give you the actual important information about your DICOM instance. Once you are confident this is using one of the compressed Transfer Syntax, you can use DCMTK to do the decompression. For JPEG family you would need to use:

$ dcmdjpeg input.dcm output.dcm

And so on and so forth for JPEG-LS and RLE (namely: dcmdjpls and dcmdrle).

malat

Posted 2012-07-30T11:04:17.777

Reputation: 981

0

It is a known bug since 2009.

GIMP loads a DICOM file, but the image doesn't appear in the right way. Probably there is a problem on little/big endian decoding. Indeed, a figure is visualized, but the gray levels are wrong. The foreground is noisy while the background is dark. I suggest an option on the Open wizard to set the little/big endian decoding when the Dicom file type is selected.

See GIMP Issue tracker: Issue on DICOM files

orbanbalage

Posted 2012-07-30T11:04:17.777

Reputation: 1