Image depth and bitStored are divergent

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Roadrunner
Posts: 56
Joined: Mon, 2010-06-14, 16:41

Image depth and bitStored are divergent

#1 Post by Roadrunner »

I have some CT/MRT images with bits stored = 12 and if I us the class DcmImage and getDepth() I get 13 or 15 (depending on the image).

I'd like to know whats the best parameter or correct way for dicomImage->getoutputdata(..) to get a pointer to the image buffer with correct data in this case?
For CR/DX images it's not a problem and everything is working fine.

I know if there is a LUT I have to consider this before I display the image.

Thanks for you help or any hint. :-)

Frank

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

Re: Image depth and bitStored are divergent

#2 Post by J. Riesmeier »

My typical answer to questions like this is:
J. Riesmeier wrote:DicomImage::getDepth() returns the actual number of bits per sample used for the internal pixel representation. This value does not necessarily have to be identical with BitsStored (e.g. because of the Modality Transformation). Usually, the 'bits' value passed to DicomImage::getOutputData() depends on the output device (or bitmap format) and not on the DICOM image.
Does this also answer your question?

Roadrunner
Posts: 56
Joined: Mon, 2010-06-14, 16:41

Re: Image depth and bitStored are divergent

#3 Post by Roadrunner »

Seems you get this question often. :-(
Sorry for bothering you and not and don't using the search function.

But thanks a lot - your answer was helpful. :-)

Frank

Post Reply

Who is online

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