pycvcam.Transform.constants#

property Transform.constants: ndarray | None#

[Get/Set] to return the constants of the transformation.

The constants must be a 1-D float numpy array of shape (n_constants,) where n_constants is the number of constants of the transformation.

If the transformation is not set, this property return None.

Note

If the transformation does not have constants, this property should return an array of shape (0,).

Parameters:

value (Optional[ArrayLike]) – The constants of the transformation as a 1-D numpy array.

Returns:

The constants of the transformation.

Return type:

Optional[numpy.ndarray]

Raises:

ValueError – If the constants are not a 1-D numpy array.