Skip to content

sfm_normalizePoints

sfmfunctionOpenCV 5.0.0
import { sfm_normalizePoints } from '@banou/opencv-wasm'

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

ARGUMENTSpoints, normalized_points, T
FUNCTIONsfm_normalizePoints
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

This function normalizes points (non isotropic).

sfm_normalizePoints(points: Mat, normalized_points: Mat, T: Mat): void;
points

Input vector of N-dimensional points.

normalized_points

Output destination, filled by the native operation. Output vector of the same N-dimensional points but with mean 0 and average norm \sqrt{2}.

T

Output destination, filled by the native operation. Output 3x3 transform matrix such that x = T*X, where X are the points to normalize and x the normalized points.

Internally calls preconditionerFromPoints in order to get the scaling matrix before applying applyTransformationToPoints. This operation is an essential step before applying the DLT algorithm in order to consider the result as optimal.\n Reference: [HartleyZ00] 4.4.4 pag.109

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.