First of all, thank you for your time and your reply ^^
- The folder I am using to test this import contain 16bit images, so either
short
orunsigned short
. I can check withimage.bitsStored()
that in this case is16
. Alsoimage.pixelRepresentation()
returnsint16
(so probablyshort
because the flagUInt16
exist for unsigned). - The argument of
getRawPixelData(x)
is the frame, this because there might be a case where all the frames of the volume are in a single “image”. In this case every image has a single frame so it’s always 0. -
getRawPixelData(x)
returns a buffervoid*
that points to the raw pixel data of the frame - About the size, I am not 100% sure, the best way seems doing
image.pixelData(0)->size()
. This returns 524’288 (512x512x2), and I am being told that is *2 because is 16bit.
Why? How should i use this size?