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 ExchangeContour 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