erode until 1 pixel remains

What is the function that erodes the object all the way until only one pixel remains from that object?

 Risposta accettata

Chaya N
Chaya N il 26 Ott 2016

0 voti

The function bwmorph with the 'shrink' option perhaps.

1 Commento

Changoleon
Changoleon il 27 Ott 2016
Hey you are right,
BW2 = bwmorph(BW,'shrink',Inf); does the job, thank you

Accedi per commentare.

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by