How to get data from dcm which PR = 1?
Moderator: Moderator Team
How to get data from dcm which PR = 1?
I can't get the size of the pixel data from dcm files which PR =1 using getOutPutDataSize(), how to get its size and data?
Thank you!
I have solved this problem, when PR = 1, the function "getOutPutDateSize()" return the double size of Pixel Size, because of 2's complement integer.
Thank you!
I have solved this problem, when PR = 1, the function "getOutPutDateSize()" return the double size of Pixel Size, because of 2's complement integer.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
I mean that when I use createWindowsDIB(), the parameter of "size" is the half of getOutPutData() when PR = 1, am I right?Jörg Riesmeier wrote:No, getOutputData() always returns unsigned pixel data even if the original pixel data is signed (because the output of the VOI LUT transformation is always unsigned).
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Because I want to display the image which PR = 1, because of the getOutPutData() return the 2's complement integer's size, so how do I set the 'size' parameter of 'CreateWindowsDIB()'? May I use the way of allcating the memory internaly?Jörg Riesmeier wrote:There is no such general rule. The size of the output image depends on the image data and the parameters which are passed to the method(s).
Thank you!
Best wishes,
kamil
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Hi, I want to know how to get raw data, but I find DicomImage::getInterData() return the data after modality transformation has been applied.Jörg Riesmeier wrote:No, getOutputData() always returns unsigned pixel data even if the original pixel data is signed (because the output of the VOI LUT transformation is always unsigned).
findAndGetUint16Array() function only get Unsigned data.
How can I get the raw unsigned data?
thank you!
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
What do you mean by that? What do you intend to do?How can I get the raw unsigned data?
You can either switch off the Modality LUT Transformation using the flag CIF_IgnoreModalityTransformation in the DicomImage constructor or you can use findAndGetUint8/16Array() and do the extraction and possible transformation in your own code.
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest