change_radial_distortion_pointsT_change_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPointschange_radial_distortion_points (算子)
名称
change_radial_distortion_pointsT_change_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPointschange_radial_distortion_points — 更改像素坐标的径向畸变。
签名
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]]
描述
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.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
RowRowRowRowrowrow (输入控制) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Original row component of pixel coordinates.
ColColColColcolcol (输入控制) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Original column component of pixel coordinates.
CamParamInCamParamInCamParamInCamParamIncamParamIncam_param_in (输入控制) 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 (输入控制) 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 (输出控制) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Row component of pixel coordinates after
changing the radial distortion.
ColChangedColChangedColChangedColChangedcolChangedcol_changed (输出控制) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Column component of pixel coordinates after
changing the radial distortion.
结果
change_radial_distortion_pointschange_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPointsChangeRadialDistortionPointschange_radial_distortion_points 在所有参数值正确时返回 2 ( H_MSG_TRUE )。
另见
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
模块
标定