pyFM.eval.evaluate.accuracy¶
- pyFM.eval.evaluate.accuracy(p2p, gt_p2p, D1_geod, return_all=False, sqrt_area=None)¶
Compute the geodesic accuracy of a vertex to vertex map.
The map goes from the target shape to the source shape.
- Parameters:
p2p ((n2,) np.ndarray) – Vertex to vertex map giving the index of the matched vertex on the source shape for each vertex on the target shape (from a functional map point of view).
gt_p2p ((n2,) np.ndarray) – Ground truth mapping between the pairs.
D1_geod ((n1, n1) np.ndarray) – Geodesic distance between pairs of vertices on the source mesh.
return_all (bool, optional) – Whether to return all the distances or only the average geodesic distance.
sqrt_area (float, optional) – If provided, the square root of the mesh area used to normalize the distances.
- Returns:
acc (float) – Average accuracy of the vertex to vertex map.
dists ((n2,) np.ndarray) – Only if return_all is True - all the pairwise distances.