How to find distance between two points in a point cloud?
2 次查看(过去 30 天)
显示 更早的评论
I have a point cloud obtained from kinect in matlab. I need to find distance between any two points of my interest. If possible how do I select the points and find distance between them, please help me.
0 个评论
采纳的回答
Image Analyst
2021-1-2
Use sqrt().
First convert x and y to cm or m or whatever units your depth image are in (VERY IMPORTANT).
Then just do
z1 = depthImage(y1, x1);
z2 = depthImage(y2, x2);
distance = sqrt((x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2)
2 个评论
Image Analyst
2021-1-5
I don't know of any convenient way to select data points in a 3-D scatter plot. Sorry. There probably is though. Call tech support.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Kinect For Windows Sensor 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!