erode until 1 pixel remains

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

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

Asked:

on 26 Oct 2016

Commented:

on 27 Oct 2016

Community Treasure Hunt

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

Start Hunting!