How can I use the function impoly/imfreehand/imrect to extract Region of Interest (ROI) as well as the background separately of a medical image (Brain MRI) with tumor where tumor portion is the ROI and rest of the image is background or Non-ROI?

1 次查看(过去 30 天)
Sir, I have a code to extract the ROI (tumor portion) of a brain MRI as below
grayImage = imread('brain_tumor.png');
figure,imshow(grayImage);
h = imrect; position = wait(h);
croppedImage = imcrop(grayImage, position);
figure;
imshow(croppedImage);
BackGround = imsubtract(grayImage - croppedImage);
figure, imshow(BackGround);
But Sir with this code I am not getting the background or Non-ROI, that is the rest of the image portion....But I also need to extract the Non ROI separately using either impoly or imfreehand or imrect so that I can merge them later after compressing ROI losslessly and NON ROI using lossy compression. Sir kindly help me. Debarpita Chaudhuri.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MRI 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by