Goodmorning,
I would like to have help about that question:
I have the image_1 which I've attached.After having thresholding and binarized that image as result i've Image_2 (attached).Starting from Binary Image (Image_2) ,I would like to remove filled parts and noise, and I would like to fill remaining empty shapes (Filled Parts,Noise and Empty Shape are clearly reported in the Image_3).
Thanks in advance for your support
Attached also the develpoed code
clearclcclose all%%
rgbImage = imread('Foto_1.JPG');Image_Gray = rgb2gray(rgbImage); % Translete in Gray Scale
%%figure;grid on;hold on;subplot(121);imshow(Image_Gray);subplot(122)[counts,binLocations] = imhist(Image_Gray);bar(binLocations,counts)%%thresholdValue = 100; % 100 is the correct Value
binaryImage = Image_Gray > thresholdValue; % Bright objects will be chosen if you use >.
figure;imshow(binaryImage); hold off
Best Answer