erode until 1 pixel remains

9 views (last 30 days)
Changoleon
Changoleon on 26 Oct 2016
Commented: Changoleon on 27 Oct 2016
What is the function that erodes the object all the way until only one pixel remains from that object?

Accepted Answer

Chaya N
Chaya N on 26 Oct 2016
The function bwmorph with the 'shrink' option perhaps.
  1 Comment
Changoleon
Changoleon on 27 Oct 2016
Hey you are right,
BW2 = bwmorph(BW,'shrink',Inf); does the job, thank you

Sign in to comment.

More Answers (0)

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!