필터 지우기
필터 지우기

connecting image extreme (end) boundries

조회 수: 1 (최근 30일)
Iram Shahzadi
Iram Shahzadi 2020년 5월 27일
댓글: Iram Shahzadi 2020년 5월 27일
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

채택된 답변

Image Analyst
Image Analyst 2020년 5월 27일
Try
mask = bwconvhull(mask, 'union');
or else try imclose() followed by imfill(), or try activecontour() (demo attached).
  댓글 수: 1
Iram Shahzadi
Iram Shahzadi 2020년 5월 27일
Thanks a lot, i used bwconvhull followed activecontour and with 200 iterations and got desired results. I was able to use activecontour as I have original image from which i created edge detected image initially.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by