chamfer_distance
chamfer_distance copied to clipboard
Usage example is incorrect?
I found that I need to call the method in a different way, first I needed to initialize the class and only then call it, so this works:
dist1, dist2, idx1, idx2 = chamfer_dist()(p1,p2)
while the example in the readme does not work and produces an error ... = chamfer_dist(p1,p2)
(without the class parenthesis)
Is it just me?
Thank you for this package in any case.
Thanks for your comment, I was stuck trying the run a different project (SAGA) which is using this library, and kept getting an error regarding the number of input arguments, when I found your suggestion chamfer_dist()(p1,p2), and it fixed the issue.