ClassesClassesClassesClasses | | | | Operators

cam_mat_to_cam_parT_cam_mat_to_cam_parCamMatToCamParcam_mat_to_cam_parCamMatToCamParCamMatToCamPar (Operator)

Name

cam_mat_to_cam_parT_cam_mat_to_cam_parCamMatToCamParcam_mat_to_cam_parCamMatToCamParCamMatToCamPar — Compute the internal camera parameters from a camera matrix.

Signature

cam_mat_to_cam_par( : : CameraMatrix, Kappa, ImageWidth, ImageHeight : CameraParam)

Herror T_cam_mat_to_cam_par(const Htuple CameraMatrix, const Htuple Kappa, const Htuple ImageWidth, const Htuple ImageHeight, Htuple* CameraParam)

Herror cam_mat_to_cam_par(const HTuple& CameraMatrix, const HTuple& Kappa, const HTuple& ImageWidth, const HTuple& ImageHeight, HTuple* CameraParam)

void CamMatToCamPar(const HTuple& CameraMatrix, const HTuple& Kappa, const HTuple& ImageWidth, const HTuple& ImageHeight, HTuple* CameraParam)

HTuple HHomMat2D::CamMatToCamPar(double Kappa, Hlong ImageWidth, Hlong ImageHeight) const

void HOperatorSetX.CamMatToCamPar(
[in] VARIANT CameraMatrix, [in] VARIANT Kappa, [in] VARIANT ImageWidth, [in] VARIANT ImageHeight, [out] VARIANT* CameraParam)

VARIANT HHomMat2DX.CamMatToCamPar(
[in] double Kappa, [in] Hlong ImageWidth, [in] Hlong ImageHeight)

static void HOperatorSet.CamMatToCamPar(HTuple cameraMatrix, HTuple kappa, HTuple imageWidth, HTuple imageHeight, out HTuple cameraParam)

HTuple HHomMat2D.CamMatToCamPar(double kappa, int imageWidth, int imageHeight)

Description

cam_mat_to_cam_parcam_mat_to_cam_parCamMatToCamParcam_mat_to_cam_parCamMatToCamParCamMatToCamPar computes internal camera parameters from the camera matrix CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix, the radial distortion coefficient KappaKappaKappaKappaKappakappa, the image width ImageWidthImageWidthImageWidthImageWidthImageWidthimageWidth, and the image height ImageHeightImageHeightImageHeightImageHeightImageHeightimageHeight. The camera parameters are returned in CameraParamCameraParamCameraParamCameraParamCameraParamcameraParam. The parameters CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix and KappaKappaKappaKappaKappakappa can be determined with stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration. cam_mat_to_cam_parcam_mat_to_cam_parCamMatToCamParcam_mat_to_cam_parCamMatToCamParCamMatToCamPar converts this representation of the internal camera parameters into the representation used by camera_calibrationcamera_calibrationCameraCalibrationcamera_calibrationCameraCalibrationCameraCalibration. The conversion can only be performed if the skew of the image axes is set to 0 in stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration, i.e., if the parameter 'skew'"skew""skew""skew""skew""skew" is not being determined.

Parallelization

Parameters

CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix (input_control)  hom_mat2d HHomMat2D, HTupleHTupleHTupleHHomMat2DX, VARIANTHtuple (real) (double) (double) (double) (double) (double)

3x3 projective camera matrix that determines the internal camera parameters.

KappaKappaKappaKappaKappakappa (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Kappa.

ImageWidthImageWidthImageWidthImageWidthImageWidthimageWidth (input_control)  extent.x HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Width of the images that correspond to CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix.

Restriction: ImageWidth > 0

ImageHeightImageHeightImageHeightImageHeightImageHeightimageHeight (input_control)  extent.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Height of the images that correspond to CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix.

Restriction: ImageHeight > 0

CameraParamCameraParamCameraParamCameraParamCameraParamcameraParam (output_control)  number-array HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Internal camera parameters.

Number of elements: CameraParam == 8

Example (HDevelop)

* For the input data to stationary_camera_self_calibration, please
* refer to the example for stationary_camera_self_calibration.
stationary_camera_self_calibration (4, 640, 480, 1, From, To, \
                                    HomMatrices2D, Rows1, Cols1, \
                                    Rows2, Cols2, NumMatches, \
                                    'gold_standard', \
                                    ['focus','principal_point','kappa'], \
                                    'true', CameraMatrix, Kappa, \
                                    RotationMatrices, X, Y, Z, Error)
cam_mat_to_cam_par (CameraMatrix, Kappa, 640, 480, CameraParam)

Result

If the parameters are valid, the operator cam_mat_to_cam_parcam_mat_to_cam_parCamMatToCamParcam_mat_to_cam_parCamMatToCamParCamMatToCamPar returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration

See also

camera_calibrationcamera_calibrationCameraCalibrationcamera_calibrationCameraCalibrationCameraCalibration, cam_par_to_cam_matcam_par_to_cam_matCamParToCamMatcam_par_to_cam_matCamParToCamMatCamParToCamMat

Module

Calibration


ClassesClassesClassesClasses | | | | Operators