change_radial_distortion_cam_parT_change_radial_distortion_cam_parChangeRadialDistortionCamParChangeRadialDistortionCamPar (Operator)

Name

change_radial_distortion_cam_parT_change_radial_distortion_cam_parChangeRadialDistortionCamParChangeRadialDistortionCamPar — Determine new camera parameters in accordance to the specified radial distortion.

Signature

change_radial_distortion_cam_par( : : Mode, CamParamIn, DistortionCoeffs : CamParamOut)

Herror T_change_radial_distortion_cam_par(const Htuple Mode, const Htuple CamParamIn, const Htuple DistortionCoeffs, Htuple* CamParamOut)

void ChangeRadialDistortionCamPar(const HTuple& Mode, const HTuple& CamParamIn, const HTuple& DistortionCoeffs, HTuple* CamParamOut)

HCamPar HCamPar::ChangeRadialDistortionCamPar(const HString& Mode, const HTuple& DistortionCoeffs) const

HCamPar HCamPar::ChangeRadialDistortionCamPar(const HString& Mode, double DistortionCoeffs) const

HCamPar HCamPar::ChangeRadialDistortionCamPar(const char* Mode, double DistortionCoeffs) const

HCamPar HCamPar::ChangeRadialDistortionCamPar(const wchar_t* Mode, double DistortionCoeffs) const   (Windows only)

static void HOperatorSet.ChangeRadialDistortionCamPar(HTuple mode, HTuple camParamIn, HTuple distortionCoeffs, out HTuple camParamOut)

HCamPar HCamPar.ChangeRadialDistortionCamPar(string mode, HTuple distortionCoeffs)

HCamPar HCamPar.ChangeRadialDistortionCamPar(string mode, double distortionCoeffs)

Description

change_radial_distortion_cam_parchange_radial_distortion_cam_parChangeRadialDistortionCamParChangeRadialDistortionCamParChangeRadialDistortionCamPar modifies the internal camera parameters in accordance to the specified radial distortion coefficients DistortionCoeffsDistortionCoeffsDistortionCoeffsDistortionCoeffsdistortionCoeffs. Via ModeModeModeModemode one of the following modes can be selected:

In all modes the distortion coefficients in CamParamOutCamParamOutCamParamOutCamParamOutcamParamOut are set to DistortionCoeffsDistortionCoeffsDistortionCoeffsDistortionCoeffsdistortionCoeffs. The transformation of a pixel in the modified image into the image plane using CamParamOutCamParamOutCamParamOutCamParamOutcamParamOut results in the same point as the transformation of a pixel in the original image via CamParamInCamParamInCamParamInCamParamIncamParamIn.

Please note that change_radial_distortion_cam_parchange_radial_distortion_cam_parChangeRadialDistortionCamParChangeRadialDistortionCamParChangeRadialDistortionCamPar does not work for line scan cameras.

Execution Information

Parameters

ModeModeModeModemode (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Mode

Default value: 'adaptive' "adaptive" "adaptive" "adaptive" "adaptive"

Suggested values: 'fullsize'"fullsize""fullsize""fullsize""fullsize", 'adaptive'"adaptive""adaptive""adaptive""adaptive", 'fixed'"fixed""fixed""fixed""fixed", 'preserve_resolution'"preserve_resolution""preserve_resolution""preserve_resolution""preserve_resolution"

CamParamInCamParamInCamParamInCamParamIncamParamIn (input_control)  campar HCamPar, HTupleHTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Internal camera parameters (original).

DistortionCoeffsDistortionCoeffsDistortionCoeffsDistortionCoeffsdistortionCoeffs (input_control)  real(-array) HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Desired radial distortions.

Number of elements: DistortionCoeffs == 1 || DistortionCoeffs == 5

Default value: 0.0

CamParamOutCamParamOutCamParamOutCamParamOutcamParamOut (output_control)  campar HCamPar, HTupleHTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Internal camera parameters (modified).

Result

change_radial_distortion_cam_parchange_radial_distortion_cam_parChangeRadialDistortionCamParChangeRadialDistortionCamParChangeRadialDistortionCamPar returns 2 (H_MSG_TRUE) if all parameter values are correct. If necessary, an exception is raised.

Possible Predecessors

camera_calibrationcamera_calibrationCameraCalibrationCameraCalibrationCameraCalibration, read_cam_parread_cam_parReadCamParReadCamParReadCamPar

Possible Successors

change_radial_distortion_imagechange_radial_distortion_imageChangeRadialDistortionImageChangeRadialDistortionImageChangeRadialDistortionImage, change_radial_distortion_contours_xldchange_radial_distortion_contours_xldChangeRadialDistortionContoursXldChangeRadialDistortionContoursXldChangeRadialDistortionContoursXld, gen_radial_distortion_mapgen_radial_distortion_mapGenRadialDistortionMapGenRadialDistortionMapGenRadialDistortionMap

See also

camera_calibrationcamera_calibrationCameraCalibrationCameraCalibrationCameraCalibration, read_cam_parread_cam_parReadCamParReadCamParReadCamPar, change_radial_distortion_imagechange_radial_distortion_imageChangeRadialDistortionImageChangeRadialDistortionImageChangeRadialDistortionImage, change_radial_distortion_contours_xldchange_radial_distortion_contours_xldChangeRadialDistortionContoursXldChangeRadialDistortionContoursXldChangeRadialDistortionContoursXld, change_radial_distortion_pointschange_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPointsChangeRadialDistortionPoints

Module

Calibration