change_radial_distortion_pointsT_change_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPointschange_radial_distortion_points (Operator)
Name
change_radial_distortion_pointsT_change_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPointschange_radial_distortion_points
— Change the radial distortion of pixel coordinates.
Signature
def change_radial_distortion_points(row: Sequence[float], col: Sequence[float], cam_param_in: Sequence[Union[int, float, str]], cam_param_out: Sequence[Union[int, float, str]]) -> Tuple[Sequence[float], Sequence[float]]
Description
change_radial_distortion_pointschange_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPointsChangeRadialDistortionPointschange_radial_distortion_points
changes the radial
distortion of input image coordinates (RowRowRowRowrowrow
, ColColColColcolcol
)
in accordance to the internal camera parameters CamParamInCamParamInCamParamInCamParamIncamParamIncam_param_in
and CamParamOutCamParamOutCamParamOutCamParamOutcamParamOutcam_param_out
. Each input pixel (RowRowRowRowrowrow
,
ColColColColcolcol
) is transformed into the image plane using
CamParamInCamParamInCamParamInCamParamIncamParamIncam_param_in
and projected into another image using
CamParamOutCamParamOutCamParamOutCamParamOutcamParamOutcam_param_out
.
Please note that change_radial_distortion_pointschange_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPointsChangeRadialDistortionPointschange_radial_distortion_points
does not
work for line scan cameras with perspective lenses.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
RowRowRowRowrowrow
(input_control) real-array →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Original row component of pixel coordinates.
ColColColColcolcol
(input_control) real-array →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Original column component of pixel coordinates.
CamParamInCamParamInCamParamInCamParamIncamParamIncam_param_in
(input_control) campar →
HCamPar, HTupleSequence[Union[int, float, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
The inner camera parameters of the camera used
to create the input pixel coordinates.
CamParamOutCamParamOutCamParamOutCamParamOutcamParamOutcam_param_out
(input_control) campar →
HCamPar, HTupleSequence[Union[int, float, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
The inner camera parameters of a camera.
RowChangedRowChangedRowChangedRowChangedrowChangedrow_changed
(output_control) real-array →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Row component of pixel coordinates after
changing the radial distortion.
ColChangedColChangedColChangedColChangedcolChangedcol_changed
(output_control) real-array →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Column component of pixel coordinates after
changing the radial distortion.
Result
change_radial_distortion_pointschange_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPointsChangeRadialDistortionPointschange_radial_distortion_points
returns 2 (
H_MSG_TRUE)
if all
parameter values are correct.
See also
change_radial_distortion_cam_parchange_radial_distortion_cam_parChangeRadialDistortionCamParChangeRadialDistortionCamParChangeRadialDistortionCamParchange_radial_distortion_cam_par
,
camera_calibrationcamera_calibrationCameraCalibrationCameraCalibrationCameraCalibrationcamera_calibration
,
read_cam_parread_cam_parReadCamParReadCamParReadCamParread_cam_par
,
change_radial_distortion_contours_xldchange_radial_distortion_contours_xldChangeRadialDistortionContoursXldChangeRadialDistortionContoursXldChangeRadialDistortionContoursXldchange_radial_distortion_contours_xld
,
change_radial_distortion_imagechange_radial_distortion_imageChangeRadialDistortionImageChangeRadialDistortionImageChangeRadialDistortionImagechange_radial_distortion_image
Module
Calibration