If you only need the first frame, why do you decompress the entire dataset then?
I would rather suggest to have a look at DcmElement::getUncompressedFrame(), which should do what you need.
First step would be to get the Pointer to the DcmPixelData instance, of course. This could e.g. be done with DcmItem::findAndGetElement().
Unsupported value for 'PhotometricInterpretation'
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2501
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Unsupported value for 'PhotometricInterpretation'
Thank you it worked!
But this method, unlike initiation of DicomImage instance, does not handle cases when the PhotometricInterpretation is palette color.
i.e. returns pixel data containing inputs for the color lookup tables.
Is there any way to overcome this issue?
But this method, unlike initiation of DicomImage instance, does not handle cases when the PhotometricInterpretation is palette color.
i.e.
Code: Select all
pixelElement->getUncompressedFrame(..)
Is there any way to overcome this issue?
-
- DCMTK Developer
- Posts: 2501
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Unsupported value for 'PhotometricInterpretation'
Right, if you need rendered pixel data, you should stay with the DicomImage class. Of course, you can also process a DICOM image dataset or file with compressed pixel data using this class, and pass the number of the frame you are interested in as well as the flag CIF_UsePartialAccessToPixelData to the constructor.
Re: Unsupported value for 'PhotometricInterpretation'
Thank you!
Your answers helped me a lot
Your answers helped me a lot
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest