How can i remove the black color from inside the white curve boundary

1 ビュー (過去 30 日間)
Akhilesh Singh
Akhilesh Singh 2014 年 2 月 14 日
編集済み: Akhilesh Singh 2014 年 5 月 22 日
Image1 = imread('image.jpg');% image read
what mean this line a=Image1(:,:,1);


Anand 2014 年 2 月 14 日
Use imfill with the 'holes' option.
% read the image
im = imread('');
% binarize it
bw = rgb2gray(im)>100;
% fill holes
out = imfill(bw,'holes');
% display image
  1 件のコメント
Image Analyst
Image Analyst 2014 年 2 月 15 日
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.


その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by