MATLAB: Simple task on image

image processingMATLAB

Dear all,
I've binary image with white border . There is a huge circle with white border and its border touch the border of the image at up & down. There are some white small regions in the circle. I want to remain only white regions in the image. The borders are necessary. How it should be done?

Best Answer

doc imclearborder