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!