Skip to content

sfm_fundamentalFromEssential

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

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

ARGUMENTSE, K1, K2, F
FUNCTIONsfm_fundamentalFromEssential
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 Fundamental and Camera matrices.

sfm_fundamentalFromEssential(E: Mat, K1: Mat, K2: Mat, F: Mat): void;
E

Input 3x3 essential matrix.

K1

Input 3x3 first camera matrix K = \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1}.

K2

Input 3x3 second camera matrix. The parameters are similar to K1.

F

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

Reference: [HartleyZ00] 9.6 pag 257 (formula 9.12) or http://ai.stanford.edu/~birch/projective/node20.html

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.