Skip to content

fisheye_stereoCalibrate1

Calibration and geometryfunctionOpenCV 5.0.0
import { fisheye_stereoCalibrate1 } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSobjectPoints, imagePoints1, imagePoints2, K1
FUNCTIONfisheye_stereoCalibrate1
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Performs stereo calibration

fisheye_stereoCalibrate1(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, K1: Mat, D1: Mat, K2: Mat, D2: Mat, imageSize: Size, R: Mat, T: Mat, flags: number, criteria: TermCriteria): number;
3 available overloads
fisheye_stereoCalibrate1(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, K1: Mat, D1: Mat, K2: Mat, D2: Mat, imageSize: Size, R: Mat, T: Mat): number;
fisheye_stereoCalibrate1(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, K1: Mat, D1: Mat, K2: Mat, D2: Mat, imageSize: Size, R: Mat, T: Mat, flags: number): number;
fisheye_stereoCalibrate1(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, K1: Mat, D1: Mat, K2: Mat, D2: Mat, imageSize: Size, R: Mat, T: Mat, flags: number, criteria: TermCriteria): number;
objectPoints

Vector of vectors of the calibration pattern points.

imagePoints1

Vector of vectors of the projections of the calibration pattern points, observed by the first camera.

imagePoints2

Vector of vectors of the projections of the calibration pattern points, observed by the second camera.

K1

Input/output value, modified by the native operation. Input/output first camera intrinsic matrix: \vecthreethree{f_x^{(j)}}{0}{c_x^{(j)}}{0}{f_y^{(j)}}{c_y^{(j)}}{0}{0}{1} , j = 0,\, 1 . If any of cv::CALIB_USE_INTRINSIC_GUESS , cv::CALIB_FIX_INTRINSIC are specified, some or all of the matrix components must be initialized.

D1

Input/output value, modified by the native operation. Input/output vector of distortion coefficients \distcoeffsfisheye of 4 elements.

K2

Input/output value, modified by the native operation. Input/output second camera intrinsic matrix. The parameter is similar to K1 .

D2

Input/output value, modified by the native operation. Input/output lens distortion coefficients for the second camera. The parameter is similar to D1 .

imageSize

Size of the image used only to initialize camera intrinsic matrix.

R

Output destination, filled by the native operation. Output rotation matrix between the 1st and the 2nd camera coordinate systems.

T

Output destination, filled by the native operation. Output translation vector between the coordinate systems of the cameras.

flags

Different flags that may be zero or a combination of the following values:

  • cv::CALIB_FIX_INTRINSIC Fix K1, K2? and D1, D2? so that only R, T matrices are estimated.
  • cv::CALIB_USE_INTRINSIC_GUESS K1, K2 contains valid initial values of fx, fy, cx, cy that are optimized further. Otherwise, (cx, cy) is initially set to the image center (imageSize is used), and focal distances are computed in a least-squares fashion.
  • cv::CALIB_RECOMPUTE_EXTRINSIC Extrinsic will be recomputed after each iteration of intrinsic optimization.
  • cv::CALIB_CHECK_COND The functions will check validity of condition number.
  • cv::CALIB_FIX_SKEW Skew coefficient (alpha) is set to zero and stay zero.
  • cv::CALIB_FIX_K1,..., cv::CALIB_FIX_K4 Selected distortion coefficients are set to zeros and stay zero.
criteria

Termination criteria for the iterative optimization algorithm.

Returns

The number result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.