KlassenKlassenKlassenKlassen | | | | Operatoren

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 — Berechnen der internen Kameraparameter aus einer Kameramatrix.

Signatur

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)

Beschreibung

cam_mat_to_cam_parcam_mat_to_cam_parCamMatToCamParcam_mat_to_cam_parCamMatToCamParCamMatToCamPar berechnet interne Kameraparameter aus der Kameramatrix CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix, dem radialen Verzeichnungskoeffizienten KappaKappaKappaKappaKappakappa, der Bildbreite ImageWidthImageWidthImageWidthImageWidthImageWidthimageWidth und der Bildhöhe ImageHeightImageHeightImageHeightImageHeightImageHeightimageHeight. Die Kameraparameter werden in CameraParamCameraParamCameraParamCameraParamCameraParamcameraParam zurückgegeben. Die Parameter CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix und KappaKappaKappaKappaKappakappa können mit stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration bestimmt werden. cam_mat_to_cam_parcam_mat_to_cam_parCamMatToCamParcam_mat_to_cam_parCamMatToCamParCamMatToCamPar konvertiert diese Darstellung der internen Kameraparameter dann in die Darstellung, die von camera_calibrationcamera_calibrationCameraCalibrationcamera_calibrationCameraCalibrationCameraCalibration verwendet wird. Dabei kann die Konversion nur erfolgen, falls in stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration die Schrägstellung der Bildachsen auf 0 gesetzt wird, also der Parameter 'skew'"skew""skew""skew""skew""skew" nicht bestimmt wird.

Parallelisierung

Parameter

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

3x3 projektive Kameramatrix, die die internen Kameraparameter bestimmt.

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)

Breite zu CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix gehörigen Bilder.

Restriktion: ImageWidth > 0

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

Höhe zu CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix gehörigen Bilder.

Restriktion: ImageHeight > 0

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

Interne Kameraparameter.

Parameteranzahl: CameraParam == 8

Beispiel (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)

Ergebnis

Sind die Parameterwerte korrekt, dann liefert cam_mat_to_cam_parcam_mat_to_cam_parCamMatToCamParcam_mat_to_cam_parCamMatToCamParCamMatToCamPar den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration

Siehe auch

camera_calibrationcamera_calibrationCameraCalibrationcamera_calibrationCameraCalibrationCameraCalibration, cam_par_to_cam_matcam_par_to_cam_matCamParToCamMatcam_par_to_cam_matCamParToCamMatCamParToCamMat

Modul

Calibration


KlassenKlassenKlassenKlassen | | | | Operatoren