Find Distance between multiple points.

1 回表示 (過去 30 日間)
Image.Processor
Image.Processor 2017 年 11 月 2 日
回答済み: Rik 2017 年 11 月 2 日
Hello,
I want to find the distance between all the points as I have indicated in the image, i need to find between each two consecutive points. Can someone please help me, how should I do that. Thank you in advance.

採用された回答

Rik
Rik 2017 年 11 月 2 日
This is a relatively large problem. Try to break it up in smaller bits. Calculating distance between two points is trivial (just use the Pythagorean theorem on the coordinates), so your actual question is how to find the tips of your object.
One of the steps that might help, is skeletonizing the image. Then you can find the endpoints. The only task left to you is figuring out a way to find out which endpoints you should use.
Good luck.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by