I'm working with DCMTK 3.5.4 and I'm trying to retrieve original pixel data (e.g. hounsfield values). I planned to use getInterData() from the DicomImage class. Is there an example (sample code) available that shows how to use this function?
Thanks
Question to FAQ #24 (how to access original pixel data)
Moderator: Moderator Team
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Thank you for your hint. I've updated the FAQ entry accordingly.
The method DicomImage::getInterData() provides access to the internal representation of the pixel data. The return value is of type const DiPixel*, i.e. you have read-only access to all (const) methods of this class. For example, use getData() in order to get a pointer to the internal pixel data, getRepresentation() for the integer representation of the pixel values (see diutils.h), and getCount() for the number of pixel values.
The method DicomImage::getInterData() provides access to the internal representation of the pixel data. The return value is of type const DiPixel*, i.e. you have read-only access to all (const) methods of this class. For example, use getData() in order to get a pointer to the internal pixel data, getRepresentation() for the integer representation of the pixel values (see diutils.h), and getCount() for the number of pixel values.
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 1 guest