Skip to content

sfm_depth

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

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

ARGUMENTSR, t, X
FUNCTIONsfm_depth
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Returns the depth of a point transformed by a rigid transform.

sfm_depth(R: Mat, t: Mat, X: Mat): number;
R

Input 3x3 rotation matrix.

t

Input 3x1 translation vector.

X

Input 3x1 or 4x1 vector with the 3d point.

Returns

The number result.

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.