Skip to content

sfm_motionFromEssential

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

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

ARGUMENTSE, Rs, ts
FUNCTIONsfm_motionFromEssential
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Get Motion (R's and t's ) from Essential matrix.

sfm_motionFromEssential(E: Mat, Rs: MatVector, ts: MatVector): void;
E

Input 3x3 essential matrix.

Rs

Output destination, filled by the native operation. Output vector of 3x3 rotation matrices.

ts

Output destination, filled by the native operation. Output vector of 3x1 translation vectors.

Reference: [HartleyZ00] 9.6 pag 259 (Result 9.19)

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.