MATLAB: Number of spot in binary image fill holeshole fillingimage processingImage Processing Toolbox how i can find the spot of binary imagr, the result of binary image below must be = 4 how i can find it????? Best Answer bw = im2bw(imread('image.jpeg'));[~, numspots] = bwlabel( imclearborder(~bw) ); Related SolutionsMATLAB: Getting Spots in banana rgbImage=imread('ban.jpeg');subplot(121),imshow(rgbImage);grayImage=rgb2gray(rgbImage);[segment,blackSpots]=bwlabel(~im2bw(grayImage,0.7)); % Choose the threshold as per requirementstotal_bk_spots=blackSpots-1%................^ minus 1 for ignoring largest blobbssubplot(122),imshow(segment);If not, then do the color thresholding. MATLAB: Remove overlapping spots Z(region1®ion2) = 0;Post your image so we can see it and you'll get better results. Related QuestionFind spots in image
Best Answer