HALCON Reference Manual 10.0.2
Table of Contents / Calibration / Rectification ClassesClassesClasses | | | Operators

change_radial_distortion_cam_parT_change_radial_distortion_cam_parchange_radial_distortion_cam_parChangeRadialDistortionCamParChangeRadialDistortionCamPar (Operator)

Name

change_radial_distortion_cam_parT_change_radial_distortion_cam_parchange_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)

Herror change_radial_distortion_cam_par(const HTuple& Mode, const HTuple& CamParamIn, const HTuple& DistortionCoeffs, HTuple* CamParamOut)

void HOperatorSetX.ChangeRadialDistortionCamPar(
[in] VARIANT Mode, [in] VARIANT CamParamIn, [in] VARIANT DistortionCoeffs, [out] VARIANT* CamParamOut)

VARIANT HMiscX.ChangeRadialDistortionCamPar(
[in] BSTR Mode, [in] VARIANT CamParamIn, [in] VARIANT DistortionCoeffs)

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

static HTuple HMisc.ChangeRadialDistortionCamPar(string mode, HTuple camParamIn, HTuple distortionCoeffs)

static HTuple HMisc.ChangeRadialDistortionCamPar(string mode, HTuple camParamIn, double distortionCoeffs)

Description

change_radial_distortion_cam_parchange_radial_distortion_cam_parchange_radial_distortion_cam_parChangeRadialDistortionCamParChangeRadialDistortionCamPar 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.

Parallelization

Parameters

ModeModeModeModemode (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (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)  real-array HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)

Internal camera parameters (original).

Number of elements: (CamParamIn == 8) || (CamParamIn == 12)

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

Desired radial distortions.

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

Default value: 0.0

CamParamOutCamParamOutCamParamOutCamParamOutcamParamOut (output_control)  real-array HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)

Internal camera parameters (modified).

Result

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

Possible Predecessors

camera_calibrationcamera_calibrationcamera_calibrationCameraCalibrationCameraCalibration, read_cam_parread_cam_parread_cam_parReadCamParReadCamPar

Possible Successors

change_radial_distortion_imagechange_radial_distortion_imagechange_radial_distortion_imageChangeRadialDistortionImageChangeRadialDistortionImage, change_radial_distortion_contours_xldchange_radial_distortion_contours_xldchange_radial_distortion_contours_xldChangeRadialDistortionContoursXldChangeRadialDistortionContoursXld, gen_radial_distortion_mapgen_radial_distortion_mapgen_radial_distortion_mapGenRadialDistortionMapGenRadialDistortionMap

See also

camera_calibrationcamera_calibrationcamera_calibrationCameraCalibrationCameraCalibration, read_cam_parread_cam_parread_cam_parReadCamParReadCamPar, change_radial_distortion_imagechange_radial_distortion_imagechange_radial_distortion_imageChangeRadialDistortionImageChangeRadialDistortionImage, change_radial_distortion_contours_xldchange_radial_distortion_contours_xldchange_radial_distortion_contours_xldChangeRadialDistortionContoursXldChangeRadialDistortionContoursXld, change_radial_distortion_pointschange_radial_distortion_pointschange_radial_distortion_pointsChangeRadialDistortionPointsChangeRadialDistortionPoints

Module

Calibration


Table of Contents / Calibration / Rectification ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH