Skip to content

sfm_essentialFromRt

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

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

ARGUMENTSR1, t1, R2, t2
FUNCTIONsfm_essentialFromRt
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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

sfm_essentialFromRt(R1: Mat, t1: Mat, R2: Mat, t2: Mat, E: Mat): void;
R1

Input 3x3 first camera rotation matrix.

t1

Input 3x1 first camera translation vector.

R2

Input 3x3 second camera rotation matrix.

t2

Input 3x1 second camera translation vector.

E

Output destination, filled by the native operation. Output 3x3 essential matrix.

Reference: [HartleyZ00] 9.6 pag 257 (formula 9.12)

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.