How to have a contour with 4-connectivity?

1 visualización (últimos 30 días)
Meshooo
Meshooo el 26 de Nov. de 2015
Comentada: Meshooo el 27 de Nov. de 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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Contour Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by