MATLAB Answers


How to have a contour with 4-connectivity?

Dear all,
I have a contour that shown below. Two of the corners are with 8-connectivity. Is there a way to make all the corners satisfy 4-connectivity?

  댓글 수: 0

로그인 to comment.

답변 수: 1

Meghana Dinesh 님이 편집함. 26 Nov 2015
 채택된 답변

Fill the image ( imfill). Use bwboundaries with conn = 4.

  댓글 수: 1

I was thinking if there is a direct way to restore those missing pixels. Thank you.

로그인 to comment.

Translated by