MATLAB: How can remove all regions outside roi

image processingImage Processing Toolboxmask

Fellows I have a image with small coin, I want maintain the coin and remove all object's around the coin, I thought maybe implementing a Roi was possible to do that someone can help me

Best Answer

See my attached masking demos. They show a variety of different ways you can mask an image, such as to blacken outside an ROI.
Related Question