This is the code associated to the paper Partial Matching in the Space of Varifolds from The 27th international conference on Information Processing in Medical Imaging (June, 2021) (preprint : https://arxiv.org/abs/2103.12441 )
Dependancies : - numpy - torch - pykeops (see : https://www.kernel-operations.io/keops/python/installation.html) The examples can be run with the scripts :
example_surfaces.py example_vascular_trees.py Each example save the results in /results/surfaces /vascular_trees With the files : scale_N.npz : the output mesh (tree or surface) of the deformation at the different data attachment scales N. Momenta_scale_N.npy : the initial momenta to use to reproduce the deformation at the different data attachment scales N. resume_optimization.txt : the number of iterations and the loss function value at each data attachment scale N. control_points.npy : control points for the final deformation. momenta2apply.npy : the initial momenta to use to reproduce final deformation. The optimization of the loss function at each data attachment scale is monitored and saved in /results/surfaces/dict_resume_opt/