fisheye_stereoCalibrate
import { fisheye_stereoCalibrate } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Performs stereo calibration
fisheye_stereoCalibrate(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, K1: Mat, D1: Mat, K2: Mat, D2: Mat, imageSize: Size, R: Mat, T: Mat, rvecs: MatVector, tvecs: MatVector, flags: number, criteria: TermCriteria): number;3 available overloads
fisheye_stereoCalibrate(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, K1: Mat, D1: Mat, K2: Mat, D2: Mat, imageSize: Size, R: Mat, T: Mat, rvecs: MatVector, tvecs: MatVector): number;fisheye_stereoCalibrate(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, K1: Mat, D1: Mat, K2: Mat, D2: Mat, imageSize: Size, R: Mat, T: Mat, rvecs: MatVector, tvecs: MatVector, flags: number): number;fisheye_stereoCalibrate(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, K1: Mat, D1: Mat, K2: Mat, D2: Mat, imageSize: Size, R: Mat, T: Mat, rvecs: MatVector, tvecs: MatVector, flags: number, criteria: TermCriteria): number;objectPointsVector of vectors of the calibration pattern points.
imagePoints1Vector of vectors of the projections of the calibration pattern points, observed by the first camera.
imagePoints2Vector of vectors of the projections of the calibration pattern points, observed by the second camera.
K1Input/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 ofcv::CALIB_USE_INTRINSIC_GUESS,cv::CALIB_FIX_INTRINSICare specified, some or all of the matrix components must be initialized.D1Input/output value, modified by the native operation. Input/output vector of distortion coefficients
\distcoeffsfisheyeof 4 elements.K2Input/output value, modified by the native operation. Input/output second camera intrinsic matrix. The parameter is similar to K1 .
D2Input/output value, modified by the native operation. Input/output lens distortion coefficients for the second camera. The parameter is similar to D1 .
imageSizeSize of the image used only to initialize camera intrinsic matrix.
ROutput destination, filled by the native operation. Output rotation matrix between the 1st and the 2nd camera coordinate systems.
TOutput destination, filled by the native operation. Output translation vector between the coordinate systems of the cameras.
rvecsOutput destination, filled by the native operation. Output vector of rotation vectors (
Rodrigues) estimated for each pattern view in the coordinate system of the first camera of the stereo pair (e.g. std::vectorcv::Mat). More in detail, each i-th rotation vector together with the corresponding i-th translation vector (see the next output parameter description) brings the calibration pattern from the object coordinate space (in which object points are specified) to the camera coordinate space of the first camera of the stereo pair. In more technical terms, the tuple of the i-th rotation and translation vector performs a change of basis from object coordinate space to camera coordinate space of the first camera of the stereo pair.tvecsOutput destination, filled by the native operation. Output vector of translation vectors estimated for each pattern view, see parameter description of previous output parameter ( rvecs ).
flagsDifferent flags that may be zero or a combination of the following values:
cv::CALIB_FIX_INTRINSICFix K1, K2? and D1, D2? so that only R, T matrices are estimated.cv::CALIB_USE_INTRINSIC_GUESSK1, 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_EXTRINSICExtrinsic will be recomputed after each iteration of intrinsic optimization.cv::CALIB_CHECK_CONDThe functions will check validity of condition number.cv::CALIB_FIX_SKEWSkew coefficient (alpha) is set to zero and stay zero.cv::CALIB_FIX_K1,...,cv::CALIB_FIX_K4Selected distortion coefficients are set to zeros and stay zero.
criteriaTermination criteria for the iterative optimization algorithm.
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.