get pixel array in raw format
Moderator: Moderator Team
get pixel array in raw format
I am trying to get pixels using below code
const DiPixel *DP = image->getInterData();
void *pixelData = (void *) DP->getData();
I actually want to print the raw data of picture to a file.
Also i want to check whether an image in dicom is 8bit , 16 bit or 24 bit.
Any help from dicom family will be highly appreciated.
regards,
Parvez Ahmad Hakim
const DiPixel *DP = image->getInterData();
void *pixelData = (void *) DP->getData();
I actually want to print the raw data of picture to a file.
Also i want to check whether an image in dicom is 8bit , 16 bit or 24 bit.
Any help from dicom family will be highly appreciated.
regards,
Parvez Ahmad Hakim
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
thanks for reply
I am intrested in
the uncompressed pixel data stored in the Pixel Data element
the uncompressed pixel data stored in the Pixel Data element
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- Posts: 83
- Joined: Thu, 2009-03-19, 04:19
I think that you can use the "getVR" function so that you can get the value representation; And in order to get the number of bits used for a special dcm file, you can try having a look at the DCM_bitAllocated or DCM_bitStored tag (something like that, I cannot remember them clearly now). "findAndgetOFString" funtion can be used for this purpose.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest