Implemented Transformations Assembly#

To simplify the application of transformations, the package pycvcam provides two classes for composing multiple transformations together allowing you to create complex transformations by combining simpler ones without having to manually apply each transformation in sequence or create custom transformations sub-classes.

The two classes for composing transformations are the following:

  • TransformComposition: The class for composing multiple transformations together \(T_n \circ T_{n-1} \circ \dots \circ T_1 (\vec{X})\), which defines the structure for storing and applying a sequence of transformations.

  • TransformModal: The class for reducing an existing transformation by fixing some modes \(p = M^T \vec{\alpha}\), which defines the structure for storing and applying a reduced transformation by fixing some modes (i.e. , linear combinations of the parameters of the original transformation).

  • TransformMasked: The class for reducing an existing transformation by masking some parameters \(p' = p \odot m\), which defines the structure for storing and applying a reduced transformation by masking some parameters (i.e. , setting some parameters of the original transformation to zero).