How can i remove the black color from inside the white curve boundary
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Akhilesh Singh
il 14 Feb 2014
Modificato: Akhilesh Singh
il 22 Mag 2014
Image1 = imread('image.jpg');% image read
a=Image1(:,:,1);
what mean this line a=Image1(:,:,1);
0 Commenti
Risposta accettata
Anand
il 14 Feb 2014
Use imfill with the 'holes' option.
% read the image
im = imread('http://www.mathworks.com/matlabcentral/answers/uploaded_files/8143/ar1.jpg');
% binarize it
bw = rgb2gray(im)>100;
% fill holes
out = imfill(bw,'holes');
% display image
imshow(out);
1 Commento
Image Analyst
il 15 Feb 2014
That finds the area of the completely filled white area. Exactly what do you mean when you say "the area of inside the white area". Do you mean the area of the black region that is inside the white area? If so, which one? There are several black regions inside the white region.
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!