Hey guys,
I have a 3D image: [256x256x160] and a mask: [256x256x160]. The mask is a binary image of 0 and 255. After applying the mask on the image:
if true % masked_image = image.*mask;
end
I get a masked_image that has totally wrong intensity values. In fact, its values are nowhere to be found on the original image. They are just too big. All I want to achieve is extract the original image's intensities at the location of the mask and calculate the mean value of that ROI. I can see from 'imshow' that the mask is aligned properly on the image. However, applying the mask is unsuccessful and I don't understand why.
Many thanks for your help.
Best Answer