pycvcam.NoDistortion._transform#
- NoDistortion._transform(normalized_points, *, dx=False, dp=False)[source]#
Apply the identity distortion transformation.
This method maps normalized camera coordinates directly to distorted coordinates without modification.
Let \(\vec{x}_d = (x_n, y_n)\) be a point in normalized camera coordinates. The corresponding distorted point \(\vec{x}_d\) is defined as
\[\vec{x}_d = \vec{x}_n\]meaning that the normalized coordinates are returned unchanged.
Since this model has no distortion parameters:
the Jacobian with respect to the input points is the identity matrix,
the Jacobian with respect to the parameters is empty.
Warning
This method is intended for internal use. It should normally be accessed through
pycvcam.Transform.transform().- Parameters:
normalized_points (numpy.ndarray) – Normalized camera coordinates. Shape
(n_points, 2).dx (bool, optional) – If
True, compute the Jacobian with respect to the input points.dp (bool, optional) – If
True, compute the Jacobian with respect to the parameters.
- Returns:
distorted_points (numpy.ndarray) – Distorted normalized camera coordinates identical to the input points. Shape
(n_points, 2).jacobian_dx (Optional[numpy.ndarray]) – Jacobian of the output points with respect to the input points. Shape
(n_points, 2, 2)ifdx=True, otherwiseNone.jacobian_dp (Optional[numpy.ndarray]) – Jacobian of the output points with respect to the parameters. Shape
(n_points, 2, 0)ifdp=True, otherwiseNone.
- Return type: