How to have a contour with 4-connectivity?

1 Ansicht (letzte 30 Tage)
Meshooo
Meshooo am 26 Nov. 2015
Kommentiert: Meshooo am 27 Nov. 2015
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

Akzeptierte Antwort

Meghana Dinesh
Meghana Dinesh am 26 Nov. 2015
Bearbeitet: Meghana Dinesh am 26 Nov. 2015
Fill the image ( imfill). Use bwboundaries with conn = 4.
  1 Kommentar
Meshooo
Meshooo am 27 Nov. 2015
I was thinking if there is a direct way to restore those missing pixels. Thank you.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by