Skip to content

depthTo3dSparse

ptcloudfunctionOpenCV 5.0.0
import { depthTo3dSparse } from '@banou/opencv-wasm'

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

ARGUMENTSdepth, in_K, in_points, points3d
FUNCTIONdepthTo3dSparse
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

depthTo3dSparse native operation from cv::depthTo3dSparse.

depthTo3dSparse(depth: Mat, in_K: Mat, in_points: Mat, points3d: Mat): void;
depth

the depth image

in_K

param: in_points the list of xy coordinates

in_points

in points argument (Mat).

points3d

Output destination, filled by the native operation. the resulting 3d points (point is represented by 4 chanels value [x, y, z, 0])

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.