Problem in using bwlabel() for labeling individual fiber segments in a skeleton (with branchpoints removed) ?
Show older comments
I am facing a problem while applying the bwlabel() for labeling the different fiber segments. I want to label the different fiber segments in a network.
To separate out the different fiber segments I found out the branchpoints and subtracted that along with its 3x3 neighborhood from the original image. Then I applied the bwlabel to the image with connectivity of 8. This should have labeled all the fiber segments. Right?
But surprisingly it is including the neighboring fiber segments. Using a connectivity of 4 shows a labeling of upto 4849 segments. Using connectivity of 8 shows just 24 segments. Even bwconncomp() returns the same result as 24. How is this possible since clearly the number of fiber segments is more than 24? Am I doing it wrong or something?

I have attached the image of the skeleton with its branchpoints and 3x3 neighborhood removed. I want to label the individual fiber segments i.e. the different branches in the network to determine their characteristics length, spatial orientation preference and other characteristics?
Accepted Answer
More Answers (0)
Categories
Find more on Contrast Adjustment in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!