pyFM.spectral.projection_utils.compute_Deltamin

pyFM.spectral.projection_utils.compute_Deltamin(vert_emb, points_emb, n_jobs=None)

For each point in the pointcloud gives the distance to the nearest vertex on the mesh.

Compute Delta_min for each vertex in the target shape \(\min_{v_2} \|A_{v_2,*} - b\|_2\) with notations from “Deblurring and Denoising of Maps between Shapes”.

Corresponds to a nearest neighbor search.

Parameters:
  • vert_emb ((n1, p) np.ndarray) – Coordinates of the mesh vertices.

  • points_emb ((n2, p) np.ndarray) – Coordinates of the pointcloud.

  • n_jobs (int, optional) – Number of parallel processes.

Returns:

Delta_min – Delta_min for each vertex on the target shape.

Return type:

(n2,) np.ndarray