cam_mat_to_cam_parT_cam_mat_to_cam_parCamMatToCamParCamMatToCamPar (Operator)

Name

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

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

void HCamPar::CamMatToCamPar(const HHomMat2D& CameraMatrix, double Kappa, Hlong ImageWidth, Hlong ImageHeight)

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

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

void HCamPar.CamMatToCamPar(HHomMat2D cameraMatrix, double kappa, int imageWidth, int imageHeight)

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

Beschreibung

cam_mat_to_cam_parcam_mat_to_cam_parCamMatToCamParCamMatToCamParCamMatToCamPar berechnet interne Kameraparameter aus der Kameramatrix CameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix, dem radialen Verzeichnungskoeffizienten KappaKappaKappaKappakappa, der Bildbreite ImageWidthImageWidthImageWidthImageWidthimageWidth und der Bildhöhe ImageHeightImageHeightImageHeightImageHeightimageHeight. Die Kameraparameter werden in CameraParamCameraParamCameraParamCameraParamcameraParam zurückgegeben. Die Parameter CameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix und KappaKappaKappaKappakappa können mit stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration bestimmt werden. cam_mat_to_cam_parcam_mat_to_cam_parCamMatToCamParCamMatToCamParCamMatToCamPar konvertiert diese Darstellung der internen Kameraparameter dann in die Darstellung, die von camera_calibrationcamera_calibrationCameraCalibrationCameraCalibrationCameraCalibration verwendet wird. Dabei kann die Konversion nur erfolgen, falls in stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration die Schrägstellung der Bildachsen auf 0 gesetzt wird, also der Parameter 'skew'"skew""skew""skew""skew" nicht bestimmt wird.

Ausführungsinformationen

Parameter

CameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix (input_control)  hom_mat2d HHomMat2D, HTupleHTupleHtuple (real) (double) (double) (double)

3x3 projektive Kameramatrix, die die internen Kameraparameter bestimmt.

KappaKappaKappaKappakappa (input_control)  number HTupleHTupleHtuple (real) (double) (double) (double)

Kappa.

ImageWidthImageWidthImageWidthImageWidthimageWidth (input_control)  extent.x HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Breite zu CameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix gehörigen Bilder.

Restriktion: ImageWidth > 0

ImageHeightImageHeightImageHeightImageHeightimageHeight (input_control)  extent.y HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Höhe zu CameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix gehörigen Bilder.

Restriktion: ImageHeight > 0

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

Interne Kameraparameter.

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_parCamMatToCamParCamMatToCamParCamMatToCamPar den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration

Siehe auch

camera_calibrationcamera_calibrationCameraCalibrationCameraCalibrationCameraCalibration, cam_par_to_cam_matcam_par_to_cam_matCamParToCamMatCamParToCamMatCamParToCamMat

Modul

Calibration