Skip to content

fisheye_estimateNewCameraMatrixForUndistortRectify

geometryfunctionOpenCV 5.0.0
import { fisheye_estimateNewCameraMatrixForUndistortRectify } from '@banou/opencv-wasm'

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

ARGUMENTSK, D, image_size, R
FUNCTIONfisheye_estimateNewCameraMatrixForUndistortRectify
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
K

Camera intrinsic matrix cameramatrix{K}.

D

Input vector of distortion coefficients \distcoeffsfisheye.

image_size

Size of the image

R

Rectification transformation in the object space: 3x3 1-channel, or vector: 3x1/1x3 1-channel or 1x1 3-channel

P

Output destination, filled by the native operation. New camera intrinsic matrix (3x3) or new projection matrix (3x4)

balance

Sets the new focal length in range between the min focal length and the max focal length. Balance is in range of [0, 1].

new_size

the new size

fov_scale

Divisor 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.