All other questions regarding DCMTK
Moderator: Moderator Team
3 posts • Page 1 of 1
when I get the pixel data with findAndGetUint16Array the negative values are losted and I want with negative values because in my program I set the window and the center of a volume. how get the pixels with negative values?.
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
The pixel data element is either stored as OB (Other Byte) or OW (Other Word) and findAndGetUintXXArray() returns exactly this. Part 3 and 5 of the DICOM standard explain in detail how the (possibly signed) pixels are arranged inside this array. You probably also need to apply the Modality LUT transformation (if any).
Users browsing this forum: Google [Bot] and 1 guest