hi, I have a base image and a mask image (both are 3d medical Images)in .mhd format.I have the code to read my image in the above format. Can anyone provide me help in cropping my base image with the mask.
Thanks
Best Answer
To crop, you can calculate the top, bottom, left, and right columns of the mask's "true" area by using any(). Then use
You can use drawcircle() to select a circular region of interest and then create a mask from the ROI. Then you can apply the formula to calculates the contrast value. For example
Best Answer