Skip to content

sfm_triangulatePoints

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

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

Reconstructs bunch of points by triangulation.

sfm_triangulatePoints(points2d: MatVector, projection_matrices: MatVector, points3d: Mat): void;
points2d

Input vector of vectors of 2d points (the inner vector is per image). Has to be 2 X N.

projection_matrices

Input vector with 3x4 projections matrices of each image.

points3d

Output destination, filled by the native operation. Output array with computed 3d points. Is 3 x N.

Triangulates the 3d position of 2d correspondences between several images. Reference: Internally it uses DLT method [HartleyZ00] 12.2 pag.312

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.