fisheye_estimateNewCameraMatrixForUndistortRectify
import { fisheye_estimateNewCameraMatrixForUndistortRectify } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Estimates new camera intrinsic matrix for undistortion or rectification.
fisheye_estimateNewCameraMatrixForUndistortRectify(K: Mat, D: Mat, image_size: Size, R: Mat, P: Mat, balance: number, new_size: Size, fov_scale: number): void;4 available overloads
fisheye_estimateNewCameraMatrixForUndistortRectify(K: Mat, D: Mat, image_size: Size, R: Mat, P: Mat): void;fisheye_estimateNewCameraMatrixForUndistortRectify(K: Mat, D: Mat, image_size: Size, R: Mat, P: Mat, balance: number): void;fisheye_estimateNewCameraMatrixForUndistortRectify(K: Mat, D: Mat, image_size: Size, R: Mat, P: Mat, balance: number, new_size: Size): void;fisheye_estimateNewCameraMatrixForUndistortRectify(K: Mat, D: Mat, image_size: Size, R: Mat, P: Mat, balance: number, new_size: Size, fov_scale: number): void;KCamera intrinsic matrix
cameramatrix{K}.DInput vector of distortion coefficients
\distcoeffsfisheye.image_sizeSize of the image
RRectification transformation in the object space: 3x3 1-channel, or vector: 3x1/1x3 1-channel or 1x1 3-channel
POutput destination, filled by the native operation. New camera intrinsic matrix (3x3) or new projection matrix (3x4)
balanceSets the new focal length in range between the min focal length and the max focal length. Balance is in range of [0, 1].
new_sizethe new size
fov_scaleDivisor for new focal length.
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.