Problems with the window and center

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
nobnet
Posts: 28
Joined: Mon, 2005-02-28, 20:23
Contact:

Problems with the window and center

#1 Post by nobnet »

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?.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

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).

nobnet
Posts: 28
Joined: Mon, 2005-02-28, 20:23
Contact:

problems with the window and the center

#3 Post by nobnet »

thanks!. you are right!. I hope you continue help me.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest