imfill for the inside of the object
4 ビュー (過去 30 日間)
古いコメントを表示
I have an image with one giant holes(contour) which is a white pixels edge and inside it a white pupil. I need your help trying to fill the one giant hole(iris) so that I can analyze just that one. I've tried using the imfill function but so far it has been unsuccessful i used Ifill = imfill(I,'holes'); and tried a seed in the hole as imfill(I,[300 382]) .(i dont know how to upload my images to matlab central for you to see) any help on this subject would be greatly appreciated. Thanks yall.
0 件のコメント
回答 (2 件)
Matt J
2012 年 10 月 20 日
Note that I must be type logical, or else the hole you are trying to fill must have intensity=zero exactly.
0 件のコメント
Image Analyst
2012 年 10 月 20 日
This is a later post of http://www.mathworks.com/matlabcentral/answers/51406-imfill-inside-an-hole, which you should have continued. But now I'm going to delete that one and transfer my answer from your fist question here. In the future, don't make multiple posts for the same question.
From the other thread:
I use imfill all the time. Why was it unsuccessful? Did you create a binary image of your outer object? Then, didn't imfill fill in the hole? Please upload your original image and your binary image, and your imfill code.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!