MATLAB: How to remove Outermost semicircle on the grayscale image

image processing

I am attaching the image . Please help me how to remove the outermost semicicrlces.Please anyone can say the method , how to remove it?

Best Answer

mask=bwareafilt(~imbinarize(grayImage,0.8),1);
grayImage(~mask)=255;
imshow(grayImage);
Related Question