How to have a contour with 4-connectivity?

조회 수: 1 (최근 30일)
Meshooo
Meshooo 2015년 11월 26일
댓글: Meshooo 2015년 11월 27일
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일
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개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by