How to shrink a binary image of an irregular object?

12 visualizaciones (últimos 30 días)
Yun Inn
Yun Inn el 27 de Mzo. de 2014
Comentada: Yun Inn el 27 de Mzo. de 2014
I have a binary image of an irregular object. Any clue on how to shrink this object, for example, by 20pixel from all directions?
I tried tracing the boundary and edit the coordinates but it was not practical.

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 27 de Mzo. de 2014
A few ways:
doc imerode
Or if you need to maintain objects:
doc bwmorph
Look at the skel and thin options.
  3 comentarios
Sean de Wolski
Sean de Wolski el 27 de Mzo. de 2014
You'll have to try it :)
Yun Inn
Yun Inn el 27 de Mzo. de 2014
I hope it works! Anyway, thank you very much for pointing me to the right function :)

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by