Tuesday, 15 July 2014

matlab - Morphological skeleton looking strange -



matlab - Morphological skeleton looking strange -

i've implemented morphological skeletonization skeleton of digits pictures. there 8 structuring elements compared neighborhood of pixel. if status equals true, foreground pixel deleted. repeated until no more pixels deleted, output skeleton of input.

the output of implementations seems ok, doesn't nice output of matlab function bwmorph. there little lines on output, removed. @ 2 pictures i've linked post. matlab version looks "clearer" me version.

i've heard of "pruning" rid of little lines. algorithms pretty complex. there simple solution rid of lines? or there matlab built-in function remove lines?

pictures:

my own implementation:

matlab:

yes, matlab uses pruning after computing skeleton. pruning algorithm (at to the lowest degree of them) work skeleton algorithm: simple mask apply.

matlab image-processing mathematical-morphology

No comments:

Post a Comment