mymesh.register#

Tools for registering or aligning point clouds, meshes, and images.

Registration#

AxisAlignPoints(points[, axis_order, ...])

Align an point cloud to the x, y, z axes.

AxisAlignImage(img[, axis_order, threshold, ...])

Align an object in an image to the x, y, z axes.

Point2Point(points1, points2[, T0, bounds, ...])

Point cloud-to-point cloud alignment.

Mesh2Mesh(M1, M2[, T0, bounds, transform, ...])

Mesh-to-mesh registration.

Image2Image(img1, img2[, T0, bounds, ...])

Image registration for 2D or 3D images.

ICP(points1, points2[, T0, tol, maxIter])

Iterative Closest Point (ICP) algorithm for registering two point sets

Transformation#

transform_points(points, T)

Apply transformation matrix to an array of points.

transform_image(image, T[, options])

Apply transformation matrix to an image.

rotation2d(x[, center])

Rigid rotation in 2D.

rotation(x[, center, rotation_order, ...])

Rigid rotation in 3D.

translation2d(x[, image])

Rigid transformation consisting of translation and rotation in 2D.

translation(x[, image])

Rigid transformation consisting of translation and rotation in 3D.

rigid2d(x[, center, image])

Rigid transformation consisting of translation and rotation in 2D.

rigid(x[, center, rotation_order, ...])

Rigid transformation consisting of translation and rotation in 3D.

similarity2d(x[, center, rotation_order, ...])

similarity(x[, center, rotation_order, ...])

affine2d(x[, center, image])

affine(x[, center, rotation_order, ...])

T2d(t0, t1)

Generate a translation matrix

R2d(theta, center)

Generate a rotation matrix for a rotation about a point

S2d(s0, s1[, reference])

Generate a scaling matrix

Sh2d(sh01, sh10[, reference])

Generate a shearing matrix ref:https://www.mathworks.com/help/images/matrix-representation-of-geometric-transformations.html

T3d(t0, t1, t2)

Generate a translation matrix

R3d(alpha, beta, gamma[, center, ...])

Generates a rotation matrix for a rotation about a point

S3d(s0, s1, s2[, reference])

Generate a 3d scaling matrix

Sh3d(sh01, sh10, sh02, sh20, sh12, sh21[, ...])

Generates a shearing matrix ref:https://www.mathworks.com/help/images/matrix-representation-of-geometric-transformations.html

Similarity Metrics#

dice(u, v)

Dice-Sorensen coefficient for measuring the similarity between two binary images or arrays [Dic45] [Sor48]

jaccard(u, v)

Jaccard index for measuring the similarity between two binary images or arrays

mutual_information(img1, img2)

hausdorff(points1, points2)

Directed hausdorff distance between two sets of points.

closest_point_MSE(points1, points2[, tree1])

Mean squared error of the closest point distances between two point sets.

symmetric_closest_point_MSE(points1, points2)

Mean squared error of the closest point distances between two point sets.

Optimization#

optimize(objective, method[, x0, bounds, ...])

Optimization interface for registration.

Visualization#

ImageOverlay(img1, img2[, threshold])

Generate an overlay image.