How to have a contour with 4-connectivity?

2 vues (au cours des 30 derniers jours)
Meshooo
Meshooo le 26 Nov 2015
Commenté : Meshooo le 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

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by