tri3d.geometry

Tri3D defines a number of basic geometric transformations to facilitate the manipulation of points coordinates. These transformations implement a common interface.

Geometric transformations

Transformation()

Base class for geometric transformations.

AffineTransform(mat)

Linear transformation defined by a matrix.

Pipeline(*operations)

A series of operations.

Rotation(quat)

A Rotation defined by a quaternion (w, x, y, z).

Translation(vec)

Translatation

RigidTransform(rotation, translation)

A rotation followed by a translation.

Utilities

where_in_box(pts, size, box2sensor)

Return the points that lie inside a bounding box.

test_box_in_frame(obj2img, obj_size, img_size)

Return whether any of a box corner points lands within an image.