pycvcam.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 is not set, this property return None.

Note

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

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.