finding lenght of each branch

1 次查看(过去 30 天)
Mohammad Golam Kibria
Hi, I have a matrix as follows:
I =
1 0 0 0 0 1
1 0 0 0 1 0
0 1 0 1 0 0
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 1
I2=bwmorph(I,'branchpoints');
gives me the branchpoints. I need to find how many pixel are there in each branch. this is a sample matrix. I need a generalize one that can be used for any connected component having multiple branch points. can any body help? Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by