How to shrink a binary image of an irregular object?

14 ビュー (過去 30 日間)
Yun Inn
Yun Inn 2014 年 3 月 27 日
コメント済み: Yun Inn 2014 年 3 月 27 日
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 件のコメント
Sean de Wolski
Sean de Wolski 2014 年 3 月 27 日
You'll have to try it :)
Yun Inn
Yun Inn 2014 年 3 月 27 日
I hope it works! Anyway, thank you very much for pointing me to the right function :)

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by