Skip to content

sfm_importReconstruction

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

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

ARGUMENTSfile, Rs, Ts, Ks
FUNCTIONsfm_importReconstruction
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Import a reconstruction file.

sfm_importReconstruction(file: EmbindString, Rs: MatVector, Ts: MatVector, Ks: MatVector, points3d: MatVector, file_format: number): void;
2 available overloads
sfm_importReconstruction(file: EmbindString, Rs: MatVector, Ts: MatVector, Ks: MatVector, points3d: MatVector): void;
sfm_importReconstruction(file: EmbindString, Rs: MatVector, Ts: MatVector, Ks: MatVector, points3d: MatVector, file_format: number): void;
file

The path to the file.

Rs

Output destination, filled by the native operation. Output vector of 3x3 rotations of the camera

Ts

Output destination, filled by the native operation. Output vector of 3x1 translations of the camera.

Ks

Output destination, filled by the native operation. Output vector of 3x3 instrinsics of the camera.

points3d

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

file_format

The format of the file to import.

The function supports reconstructions from Bundler.

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.