How do the function find "endpoints" and "branchpoints" work ?

I using Matlab R2012a and used to function find endpoints and branchpoints by bwmorph. Can anybody help me how to two function work to determine end or branch point ?

回答 (1 件)

DGM
DGM 2021 年 4 月 28 日

0 投票

The methods used by bwmorph() involve the use of lookup tables which describe which of all possible 3x3 neighborhoods will result in a particular pixel being set true.
For R2012a, I believe that most of this is done with applylut(), the tables themselves being in MLROOT/toolbox/images/images/private/
For newer versions, look in MLROOT/toolbox/images/images/+images/+internal/algbwmorph.m
The newer versions rely on bwlookup() and LUTs in the same directory, but the process is conceptually the same.
To understand what the lookup tables mean, look at the documentation for makelut()

タグ

質問済み:

Duy
2015 年 1 月 31 日

回答済み:

DGM
2021 年 4 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by