pycvcam.core.Transform.parameters#

property Transform.parameters: ndarray | None#

[Get/Set] the parameters of the transformation.

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

If the transformation does not have parameters or they are not set, this property should return None.

Note

The given value is converted to a numpy array of dtype=numpy.float64 if it is not None.

Parameters:

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

Returns:

The parameters of the transformation.

Return type:

Optional[numpy.ndarray]

Raises:

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