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

 채택된 답변

Anand
Anand 2014년 2월 14일
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

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개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2014년 2월 14일

편집:

2014년 5월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by