Skip to content

RgbdNormals_create

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

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

ARGUMENTSrows, cols, depth, K
FUNCTIONRgbdNormals_create
RETURN TYPERgbdNormals | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates new RgbdNormals object

RgbdNormals_create(rows: number, cols: number, depth: number, K: Mat, window_size: number, diff_threshold: number, method: number): RgbdNormals | null;
8 available overloads
RgbdNormals_create(): RgbdNormals | null;
RgbdNormals_create(rows: number): RgbdNormals | null;
RgbdNormals_create(rows: number, cols: number): RgbdNormals | null;
RgbdNormals_create(rows: number, cols: number, depth: number): RgbdNormals | null;
RgbdNormals_create(rows: number, cols: number, depth: number, K: Mat): RgbdNormals | null;
RgbdNormals_create(rows: number, cols: number, depth: number, K: Mat, window_size: number): RgbdNormals | null;
RgbdNormals_create(rows: number, cols: number, depth: number, K: Mat, window_size: number, diff_threshold: number): RgbdNormals | null;
RgbdNormals_create(rows: number, cols: number, depth: number, K: Mat, window_size: number, diff_threshold: number, method: number): RgbdNormals | null;
rows

the number of rows of the depth image normals will be computed on

cols

the number of cols of the depth image normals will be computed on

depth

the depth of the normals (only CV_32F or CV_64F)

K

the calibration matrix to use

window_size

the window size to compute the normals: can only be 1,3,5 or 7

diff_threshold

threshold in depth difference, used in LINEMOD algirithm

method

one of the methods to use: RGBD_NORMALS_METHOD_SRI, RGBD_NORMALS_METHOD_FALS

Returns

The RgbdNormals | null 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.