pyFM.eval.evaluate.continuity

pyFM.eval.evaluate.continuity(p2p, D1_geod, D2_geod, edges)

Compute the continuity 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).

  • D1_geod ((n1, n1) np.ndarray) – Geodesic distance between pairs of vertices on the source mesh.

  • D2_geod ((n2, n2) np.ndarray) – Geodesic distance between pairs of vertices on the target mesh.

  • edges ((n_edges, 2) np.ndarray) – Edges on the target shape.

Returns:

continuity – Average continuity of the vertex to vertex map.

Return type:

float