pyFM.spectral.projection_utils

Note

Python implementation of:

[1] - “Deblurring and Denoising of Maps between Shapes”, by Danielle Ezuz and Mirela Ben-Chen.

Functions

nn_query_precise_np(vert_emb, faces, points_emb)

Project a pointcloud on a p-dimensional mesh.

project_pc_to_triangles(vert_emb, faces, ...)

Project a pointcloud on a set of triangles in p-dimension.

compute_lmax(vert_emb, faces)

Compute the maximum edge length of each face.

compute_Deltamin(vert_emb, points_emb[, n_jobs])

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

mycdist(X, Y[, sqnormX, sqnormY, squared])

Compute pairwise euclidean distance between two collections of vectors in a k-dimensional space.

compute_dmin(vert_emb, faces, points_emb, ...)

Given a vertex in the pointcloud and each face on the surface, gives the minimum distance between the vertex and each of the 3 points of the triangle.

compute_all_dmin(vert_emb, faces, points_emb)

For each vertex in the pointcloud and each face on the surface, gives the minimum distance between the vertex and each of the 3 points of the triangle.

project_to_mesh(vert_emb, faces, points_emb, ...)

Project a single point of a pointcloud on a p-dimensional triangle mesh.

barycentric_to_precise(faces, face_match, ...)

Transform a set of barycentric coordinates into a precise map.

point_to_triangles_projection(triangles, point)

Project a p-dimensional point on each of the given p-dimensional triangles.

pointTriangleDistance(TRI, P[, return_bary])

Computes distance between a point and a triangle in a p-dimensional space