필터 지우기
필터 지우기

How to fill a dip at the edge of a binary image

조회 수: 2 (최근 30일)
Mathew Thomas
Mathew Thomas 2017년 4월 11일
댓글: Mathew Thomas 2017년 4월 11일
Hi All, I am trying to fill the following binary image to make it into a circle (not a perfect circle though, so trying to make into a circle using the centroid and max diameter provides results which are off a bit). The fact that it is at the edge of the binary object makes it challenging. Any pointers would be extremely useful. Thanks!

채택된 답변

Image Analyst
Image Analyst 2017년 4월 11일
Not challenging at all since there's a function in the Image Processing Toolbox that will do that. Get the binary image, then call bwconvhull().
  댓글 수: 1
Mathew Thomas
Mathew Thomas 2017년 4월 11일
Thanks IA, I overlooked this function. It does exactly what I need.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by