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
Image depth and bitStored are divergent
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2517
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Image depth and bitStored are divergent
My typical answer to questions like this is:
Does this also answer your question?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.
-
- Posts: 56
- Joined: Mon, 2010-06-14, 16:41
Re: Image depth and bitStored are divergent
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
Sorry for bothering you and not and don't using the search function.
But thanks a lot - your answer was helpful.
Frank
Who is online
Users browsing this forum: Bing [Bot] and 1 guest