problem with imfill an specific hole
이전 댓글 표시
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
답변 (1개)
Image Analyst
2014년 1월 21일
편집: Image Analyst
2014년 1월 21일
0 개 추천
Somehow you need to identify that hole, like you have an x,y coordinate in it. Then you can use imreconstruct().
- 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.
If you can't figure out the exact code, attach your image. Also, please define "masc" - I don't know what that is.
댓글 수: 3
Silvia
2014년 1월 22일
Silvia
2014년 1월 22일
Image Analyst
2014년 1월 22일
Try roifill() instead. See if that works. Let me know.
카테고리
도움말 센터 및 File Exchange에서 Region and Image Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
