transformations.homogeneous

Classes and functions pertaining to homogeneous transformations.

Classes

HomogeneousTransformation

A HomogeneousTransformation is a 4x4 matrix-based transformation that that can encode a change of basis, translation, and projective warp.

CompositeHomogeneousTransformation

A CompositeHomogeneousTransformation is a CompositeTransformation closed under HomogeneousTransformation.

Functions

include_units(units)

Decorator for CompositeHomogeneousTransformation classes to include all the specified transformation types as transformations this class is closed under.

unit_for(composite_type)

Decorator for HomogeneousTransformation classes that can be composed into composite_type.

include_units(units: Set[Type[HomogeneousTransformation]])

Decorator for CompositeHomogeneousTransformation classes to include all the specified transformation types as transformations this class is closed under.

unit_for(composite_type: Type[CompositeHomogeneousTransformation])

Decorator for HomogeneousTransformation classes that can be composed into composite_type. Automatically updates matmul functions and composite_type’s closed_under() method.