connecting image extreme (end) boundries
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I have edge detected image. I want to connect all the pixels at extreme edges and fill the region inside, so that i have a binary mask of this image without any gaps. I used imdilate but this introduce thickness in boundries that i do not want in image. Can anyone please guide how I can do it. thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/303572/image.png)
댓글 수: 0
채택된 답변
Image Analyst
2020년 5월 27일
Try
mask = bwconvhull(mask, 'union');
or else try imclose() followed by imfill(), or try activecontour() (demo attached).
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!