How to shrink a binary image of an irregular object?

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

采纳的回答

Sean de Wolski
Sean de Wolski 2014-3-27
A few ways:
doc imerode
Or if you need to maintain objects:
doc bwmorph
Look at the skel and thin options.
  3 个评论
Yun Inn
Yun Inn 2014-3-27
I hope it works! Anyway, thank you very much for pointing me to the right function :)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Import, Export, and Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by