chamfer_distance icon indicating copy to clipboard operation
chamfer_distance copied to clipboard

Usage example is incorrect?

Open ofekp opened this issue 2 years ago • 1 comments

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.

ofekp avatar Dec 11 '22 01:12 ofekp

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.

sh-taheri avatar Aug 21 '23 19:08 sh-taheri