KlassenKlassenKlassenKlassen | | | | Operatoren

cam_par_to_cam_matT_cam_par_to_cam_matCamParToCamMatcam_par_to_cam_matCamParToCamMatCamParToCamMat (Operator)

Name

cam_par_to_cam_matT_cam_par_to_cam_matCamParToCamMatcam_par_to_cam_matCamParToCamMatCamParToCamMat — Berechnen einer Kameramatrix aus internen Kameraparametern.

Signatur

cam_par_to_cam_mat( : : CameraParam : CameraMatrix, ImageWidth, ImageHeight)

Herror T_cam_par_to_cam_mat(const Htuple CameraParam, Htuple* CameraMatrix, Htuple* ImageWidth, Htuple* ImageHeight)

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

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

void HHomMat2D::CamParToCamMat(const HTuple& CameraParam, Hlong* ImageWidth, Hlong* ImageHeight)

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

Hlong HHomMat2DX.CamParToCamMat(
[in] VARIANT CameraParam, [out] Hlong* ImageHeight)

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

void HHomMat2D.CamParToCamMat(HTuple cameraParam, out int imageWidth, out int imageHeight)

Beschreibung

cam_par_to_cam_matcam_par_to_cam_matCamParToCamMatcam_par_to_cam_matCamParToCamMatCamParToCamMat berechnet die Kameramatrix CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix sowie die Bildbreite ImageWidthImageWidthImageWidthImageWidthImageWidthimageWidth und die Bildhöhe ImageHeightImageHeightImageHeightImageHeightImageHeightimageHeight aus internen Kameraparametern CameraParamCameraParamCameraParamCameraParamCameraParamcameraParam. Die internen Kameraparameter CameraParamCameraParamCameraParamCameraParamCameraParamcameraParam können mit camera_calibrationcamera_calibrationCameraCalibrationcamera_calibrationCameraCalibrationCameraCalibration bestimmt werden. cam_par_to_cam_matcam_par_to_cam_matCamParToCamMatcam_par_to_cam_matCamParToCamMatCamParToCamMat konvertiert diese Darstellung der internen Kameraparameter dann in die Darstellung, die von stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration verwendet wird. Dabei kann die Konversion nur erfolgen, falls die Kamera eine Lochkamera mit Flächensensor ist und die Verzeichnungskoeffizienten in CameraParamCameraParamCameraParamCameraParamCameraParamcameraParam 0 sind. Falls nötig muss change_radial_distortion_cam_parchange_radial_distortion_cam_parChangeRadialDistortionCamParchange_radial_distortion_cam_parChangeRadialDistortionCamParChangeRadialDistortionCamPar verwendet werden, um die Verzeichnungskoeffizienten auf 0 zu setzen.

Parallelisierung

Parameter

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

Interne Kameraparameter.

Parameteranzahl: CameraParam == 8 || CameraParam == 10 || CameraParam == 12 || CameraParam == 14

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

3x3 projektive Kameramatrix, die CameraParamCameraParamCameraParamCameraParamCameraParamcameraParam entspricht.

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

Breite zu CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix gehörigen Bilder.

Zusicherung: ImageWidth > 0

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

Höhe zu CameraMatrixCameraMatrixCameraMatrixCameraMatrixCameraMatrixcameraMatrix gehörigen Bilder.

Zusicherung: ImageHeight > 0

Beispiel (HDevelop)

* For the input data to calibrate_cameras, please refer to the
* example for calibrate_cameras.
calibrate_cameras (CalibDataID, Error)
get_calib_data (CalibDataID, 'camera', 0, 'params', CameraParam)
cam_par_to_cam_mat (CameraParam, CameraMatrix, ImageWidth, ImageHeight)

* Alternatively, the following calls can be used.
change_radial_distortion_cam_par ('adaptive', CameraParam, 0, CamParamOut)
cam_par_to_cam_mat (CamParamOut, CameraMatrix, ImageWidth, ImageHeight)

Ergebnis

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

Vorgänger

camera_calibrationcamera_calibrationCameraCalibrationcamera_calibrationCameraCalibrationCameraCalibration

Siehe auch

stationary_camera_self_calibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationstationary_camera_self_calibrationStationaryCameraSelfCalibrationStationaryCameraSelfCalibration, cam_mat_to_cam_parcam_mat_to_cam_parCamMatToCamParcam_mat_to_cam_parCamMatToCamParCamMatToCamPar

Modul

Calibration


KlassenKlassenKlassenKlassen | | | | Operatoren