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?
Best,
Meshoo

 채택된 답변

Meghana Dinesh
Meghana Dinesh 2015년 11월 26일
편집: Meghana Dinesh 2015년 11월 26일

0 개 추천

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

댓글 수: 1

Meshooo
Meshooo 2015년 11월 27일
I was thinking if there is a direct way to restore those missing pixels. Thank you.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

질문:

2015년 11월 26일

댓글:

2015년 11월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by