Hausdorff Distance with Distance matrix
2 views (last 30 days)
Show older comments
Hello, I know that there are functions for the hausdorff distance already posted online. My problem however requires that I create a matrix of pairwise distances and then I have to find the hausdorff distance. I have to do this because the distance could change in my for loop and I have to calculate this for each coordinate. I have the row size of each of the point clouds too. Does any body have an idea about how I could do this? Thank you in advance. Let me try and give an example; say I have L = 2x1 cell each with 2 coordinate locations, 4 coordinates total for comparisons. I would then have a distance matrix of comparisons,D
D = [0 1 2 3; 4 0 5 6; 7 8 0 9; 10 11 12 0];
So I would want the distance that compares point 1 with 3 and 4 and point 2 with 3 and 4 in the row and then the distance that compares 3 with 1 and 2 and 4 with 1 and 2 and take the minimum of each.
0 Comments
Answers (0)
See Also
Categories
Find more on Point Cloud Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!