Segment out those objects that have holes in it
问题 I have a binary image, that has circles and squares in it. imA = imread('blocks1.png'); A = im2bw(imA); figure,imshow(A);title('Input Image - Blocks'); imBinInv = ~A; figure(2); imshow(imBinInv); title('Inverted Binarized Original Image'); Some circles and squares have small holes in them based on which, I have to generate an image which has only those circles and squares that have holes/missing point in them. How can I code that? PURPOSE: Later on, using regionprops in MATLAB, I will extract