- fill the image
- subtract original to get "holes only" image.
- make new binary image with a single dot at the location of the hole to keep.
- call imreconstruct to get only that one hole
- add to your original binary image.
problem with imfill an specific hole
1 回表示 (過去 30 日間)
古いコメントを表示
I have a problem, I have a mask with holes and I want to fill only one of them. ¿Is it possible to do that?
Well I need to fill the hole or know the value of the masc involving the hole. Both are ok for me because what I need is to know the value of the masc inolving an sepecific hole.
Please It would be nice to get some help Thank you silvia
0 件のコメント
回答 (1 件)
Image Analyst
2014 年 1 月 21 日
編集済み: Image Analyst
2014 年 1 月 21 日
Somehow you need to identify that hole, like you have an x,y coordinate in it. Then you can use imreconstruct().
If you can't figure out the exact code, attach your image. Also, please define "masc" - I don't know what that is.
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!