How to shrink a binary image of an irregular object?
3 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Sean de Wolski
on 27 Mar 2014
A few ways:
doc imerode
Or if you need to maintain objects:
doc bwmorph
Look at the skel and thin options.
3 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!