My current goal is to replace the image data that my existing system retrieves from a DICOM file and replace it with the image data that the offis toolkit retrieves.
I have tried to use
image->getOutputData(data,fileByteSizewidth*height*slices*bands*sizeof(T), 8,1));
where
image :: dicomimage
data is a buffer of type unsigned short*
the next group is the size of the buffer
8 is the bits sampled
1 is the frame
Is there some other method or class i should make use of? or could i be approaching the solution in the wrong way?
replacing our system with offis
Moderator: Moderator Team
using getOutput(0,0,0) now - all colours are negative
getMinMaxValues() returns 0 for min and 1570 for max, how do i apply them to the image?
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
sorry
i appologize
The goal is to have the image displayed in a dicom view application using the algorithms provided by the dicom offis toolkit.
Currently every pixel provided by our algorithm is an array with numerical values of each pixel. I believe that the toolkit is done in the same manner, however currently the values returned with the toolkit are extremely negative numbers (such as -32232). However when i add the most negative number to each pixel value (for loop) - the image displays correctly with my existing program.
getMinMaxValues() returns 0 for min and 1570 for max, how do i apply them to the image?
What i meant to ask was when i use that function, I get numbers typical of those that are displayable. I would like to set every number in the array to values between those two points. Is there any way to use that number range with values returned with
getOutputData(0,0,0)
The goal is to have the image displayed in a dicom view application using the algorithms provided by the dicom offis toolkit.
Currently every pixel provided by our algorithm is an array with numerical values of each pixel. I believe that the toolkit is done in the same manner, however currently the values returned with the toolkit are extremely negative numbers (such as -32232). However when i add the most negative number to each pixel value (for loop) - the image displays correctly with my existing program.
getMinMaxValues() returns 0 for min and 1570 for max, how do i apply them to the image?
What i meant to ask was when i use that function, I get numbers typical of those that are displayable. I would like to set every number in the array to values between those two points. Is there any way to use that number range with values returned with
getOutputData(0,0,0)
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
I still do not really understand what you're describing. getOutputData() never returns signed pixel data. In case you want to specify a VOI window, please use one of the methods provided for this purpose (e.g. setMinMaxWindow).
There's also a simple example in the documentation of module "dcmimgle".
There's also a simple example in the documentation of module "dcmimgle".
Who is online
Users browsing this forum: Bing [Bot] and 1 guest