fisheye_calibrate
import { fisheye_calibrate } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Performs camera calibration
fisheye_calibrate(objectPoints: MatVector, imagePoints: MatVector, image_size: Size, K: Mat, D: Mat, rvecs: MatVector, tvecs: MatVector, flags: number, criteria: TermCriteria): number;3 available overloads
fisheye_calibrate(objectPoints: MatVector, imagePoints: MatVector, image_size: Size, K: Mat, D: Mat, rvecs: MatVector, tvecs: MatVector): number;fisheye_calibrate(objectPoints: MatVector, imagePoints: MatVector, image_size: Size, K: Mat, D: Mat, rvecs: MatVector, tvecs: MatVector, flags: number): number;fisheye_calibrate(objectPoints: MatVector, imagePoints: MatVector, image_size: Size, K: Mat, D: Mat, rvecs: MatVector, tvecs: MatVector, flags: number, criteria: TermCriteria): number;objectPointsvector of vectors of calibration pattern points in the calibration pattern coordinate space.
imagePointsvector of vectors of the projections of calibration pattern points. imagePoints.size() and objectPoints.size() and imagePoints[i].size() must be equal to objectPoints[i].size() for each i.
image_sizeSize of the image used only to initialize the camera intrinsic matrix.
KInput/output value, modified by the native operation. Output 3x3 floating-point camera intrinsic matrix
\cameramatrix{A}. Ifcv::CALIB_USE_INTRINSIC_GUESSis specified, some or all of fx, fy, cx, cy must be initialized before calling the function.DInput/output value, modified by the native operation. Output vector of distortion coefficients
\distcoeffsfisheye.rvecsOutput destination, filled by the native operation. Output vector of rotation vectors (see Rodrigues ) estimated for each pattern view. That is, each k-th rotation vector together with the corresponding k-th translation vector (see the next output parameter description) brings the calibration pattern from the model coordinate space (in which object points are specified) to the world coordinate space, that is, a real position of the calibration pattern in the k-th pattern view (k=0.. M -1).
tvecsOutput destination, filled by the native operation. Output vector of translation vectors estimated for each pattern view.
flagsDifferent flags that may be zero or a combination of the following values:
cv::CALIB_USE_INTRINSIC_GUESScameraMatrix 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.cv::CALIB_FIX_PRINCIPAL_POINTThe principal point is not changed during the global optimization. It stays at the center or at a different location specified whencv::CALIB_USE_INTRINSIC_GUESSis set too.cv::CALIB_FIX_FOCAL_LENGTHThe focal length is not changed during the global optimization. It is themax(width,height)/\pior the providedf_x,f_ywhencv::CALIB_USE_INTRINSIC_GUESSis set too.
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.