How do I identify the branch points between topmost and bottom most endpoints on the shortest path? Please help.

1 次查看(过去 30 天)
%Code for topmost and bottom most endpoints
endpoints = bwmorph(clnKonkal, 'endpoints');
[node_y, node_x] = find(endpoints==1); %getting the x and y coordinates of the endpoints in node_x and node_y respectively
[yTopRow, index] = min(node_y); % Get top row which is the smallest y value
xTopRow = node_x(index);
[yBottomRow, index] = max(node_y); % Get bottom row which is the largest y value
xBottomRow = node_x(index);
%finding the branchpoints
forkpts = bwmorph(clnKonkal, 'branchpoints');
%Now, how do I find those particular branch points between topmost and bottom most end points

回答(1 个)

Ben Aicha takwa
Ben Aicha takwa 2018-7-15
Hi, Can anyone helps as to get answer. Thanks.

Community Treasure Hunt

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

Start Hunting!

Translated by