Skip to content

undistortImagePoints

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

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

ARGUMENTSsrc, dst, cameraMatrix, distCoeffs
FUNCTIONundistortImagePoints
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Compute undistorted image points position

undistortImagePoints(src: Mat, dst: Mat, cameraMatrix: Mat, distCoeffs: Mat, arg1: TermCriteria): void;
2 available overloads
undistortImagePoints(src: Mat, dst: Mat, cameraMatrix: Mat, distCoeffs: Mat): void;
undistortImagePoints(src: Mat, dst: Mat, cameraMatrix: Mat, distCoeffs: Mat, arg1: TermCriteria): void;
src

Observed points position, 2xN/Nx2 1-channel or 1xN/Nx1 2-channel (CV_32FC2 or CV_64FC2) (or vector<Point2f> ).

dst

Output destination, filled by the native operation. Output undistorted points position (1xN/Nx1 2-channel or vector<Point2f> ).

cameraMatrix

Camera matrix \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1} .

distCoeffs

Distortion coefficients

arg1

arg1 argument (TermCriteria).

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.