Distance between points of contact of blobs.
1 次查看(过去 30 天)
显示 更早的评论
From any starting point on the left boundary of the image given below, I need to find a 'path' through the orange blobs to the right boundary. i.e. From the starting point, I need to find the distance (and also plot the path) to the closest point of contact with the next blob, and from there to the next point of contact and so on. Can anyone give me ideas on what can be done?
0 个评论
回答(1 个)
Image Analyst
2015-2-26
Alternatively, (a simpler approach possibly) you can find the black lines and turn them white. then threshold to get white pixels and then use bwgeodesicdistance() like in Steve's blog: http://blogs.mathworks.com/steve/2011/11/01/exploring-shortest-paths-part-1/. You'd have to do every combination of starting and stopping points to find the shortest path.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!