sfm_importReconstruction
import { sfm_importReconstruction } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;fileThe path to the file.
RsOutput destination, filled by the native operation. Output vector of 3x3 rotations of the camera
TsOutput destination, filled by the native operation. Output vector of 3x1 translations of the camera.
KsOutput destination, filled by the native operation. Output vector of 3x3 instrinsics of the camera.
points3dOutput destination, filled by the native operation. Output array with 3d points. Is 3 x N.
file_formatThe 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.