MATLAB: How to remove specific portions of a image

image processingImage Processing Toolbox

Hey, I wish to remove circles from my image by specifying its center and the radius. Its a bw image and i wish to specifically remove few selected circles by specifying their centers and radii. I know strel can be used but i am not able to figure out how to use it for this purpose. Thanks.

Best Answer

Keeping in mind that an image must remain rectangular, what does "remove" mean to you? You can't really remove those pixels but you can replace them with something, such as another image, a texture, a uniform gray level, or smear the boundaries inwards with roifill(). What do you want to do?