Posted a question couple days ago; it never showed up. Not sure whether it got moderated or genuinely did not reach your servers. Trying one more time...
If someone could share with me a win32/MSVC one-liner for rendering the dicom image using the pixel data returned by DicomImage::getOutputData(), I would really, REALLY appreciate it! The 'sample' code that comes with this toolkit simply says...
Code: Select all
if (i_pixelData != NULL)
{
/* do something useful with the pixel data */
}
My image is a monochrome MR image. One thing that I'm noticing is that even though my image dimensions (as reported by getWidth/Height() functions) are 224x256, the getOutputDataSize() function is returning a number that is twice as big. Does it mean that bits per pixel for this image is 2 bytes? (I was assuming bits per pixel is 8 bits because the sample code tends to say it's so for all monochrome images. I'm also assuming number of color planes for win32 is 1!)
I'll figure out the rest if someone could kindly just get me started.
Thanks much,
SomeDeveloper.