SCIInstitute / ShapeWorks

ShapeWorks
http://sciinstitute.github.io/ShapeWorks/
Other
100 stars 32 forks source link

Evalation metrics for scalars and shape+scalar #2218

Closed nawazishkhan1-nk closed 1 month ago

nawazishkhan1-nk commented 3 months ago

Feature Summary

akenmorris commented 3 months ago

@jadie1 , Please add python implementation. Thanks!

jadie1 commented 3 months ago

Here is the equation for chamfer distance between two point clouds S1 and S2: image It is the L2 distance between each point and its nearest neighbor in the other point cloud, so the main functionality you need nearest neighbors. I've been using this PyTorch implementation: https://pytorch3d.readthedocs.io/en/latest/modules/loss.html There are some other repos that implement the functionality in C++ and adapt it for pytorch, for example: https://github.com/otaheri/chamfer_distance