How can I generate a branchless centerline in a tubelike section of a binary image?
1 view (last 30 days)
Show older comments
Hello everyone,
I need to somehow automatically find a unbranched centerline in a tubelike section of a binary image. With that centerline I want to calculate the mean length of the tubeless section, but the branches keep falsifying the values! So far I used
% Centerline = bwmorph(bw,'thin','inf');
which gets me a perfect line of pixels, but at the end there are always one or two braches.
I already tried the skeleton-operation, but this only results in a pixelline with even more branches...
% Centerline_2 = bwmorph(bw,'skel','inf')
I would be very happy if someone could help me out. Maybe I´m thinking in a completely wrong direction and there´s an very easy way to tackle this problem?
Thanks in advance for any suggestions!
2 Comments
Athos Garcia
on 11 Oct 2017
Did you solve this problem? I'm having the same issue. Could you share what you did?
Noor Mohammad
on 17 Jan 2018
Edited: Noor Mohammad
on 17 Jan 2018
Hi, have you got your problem solved? Could you please share what you did? Thanks.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!