How to have a contour with 4-connectivity?

2 次查看(过去 30 天)
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