Skip to content

fisheye_initUndistortRectifyMap

Image processingfunctionOpenCV 5.0.0
import { fisheye_initUndistortRectifyMap } from '@banou/opencv-wasm'

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

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

Computes undistortion and rectification maps for image transform by cv::remap(). If D is empty zero distortion is used, if R or P is empty identity matrixes are used.

fisheye_initUndistortRectifyMap(K: Mat, D: Mat, R: Mat, P: Mat, size: Size, m1type: number, map1: Mat, map2: Mat): void;
K

Camera intrinsic matrix cameramatrix{K}.

D

Input vector of distortion coefficients \distcoeffsfisheye.

R

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

P

New camera intrinsic matrix (3x3) or new projection matrix (3x4)

size

Undistorted image size.

m1type

Type of the first output map that can be CV_32FC1 or CV_16SC2 . See convertMaps() for details.

map1

Output destination, filled by the native operation. The first output map.

map2

Output destination, filled by the native operation. The second output map.

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.