sfm_normalizePoints
import { sfm_normalizePoints } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
This function normalizes points (non isotropic).
sfm_normalizePoints(points: Mat, normalized_points: Mat, T: Mat): void;pointsInput vector of N-dimensional points.
normalized_pointsOutput destination, filled by the native operation. Output vector of the same N-dimensional points but with mean 0 and average norm
\sqrt{2}.TOutput destination, filled by the native operation. Output 3x3 transform matrix such that
x = T*X, whereXare the points to normalize andxthe normalized points.Internally calls
preconditionerFromPointsin order to get the scaling matrix before applyingapplyTransformationToPoints.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.