Skip to content

ppf_match_3d_samplePCByQuantization

surface_matchingfunctionOpenCV 5.0.0
import { ppf_match_3d_samplePCByQuantization } from '@banou/opencv-wasm'

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

ARGUMENTSpc, xrange, yrange, zrange
FUNCTIONppf_match_3d_samplePCByQuantization
RETURN TYPEMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Sample a point cloud using uniform steps

ppf_match_3d_samplePCByQuantization(pc: Mat, xrange: Vec2f, yrange: Vec2f, zrange: Vec2f, sample_step_relative: number, weightByCenter: number): Mat;
2 available overloads
ppf_match_3d_samplePCByQuantization(pc: Mat, xrange: Vec2f, yrange: Vec2f, zrange: Vec2f, sample_step_relative: number): Mat;
ppf_match_3d_samplePCByQuantization(pc: Mat, xrange: Vec2f, yrange: Vec2f, zrange: Vec2f, sample_step_relative: number, weightByCenter: number): Mat;
pc

Input point cloud

xrange

X components (min and max) of the bounding box of the model

yrange

Y components (min and max) of the bounding box of the model

zrange

Z components (min and max) of the bounding box of the model

sample_step_relative

The point cloud is sampled such that all points have a certain minimum distance. This minimum distance is determined relatively using the parameter sample_step_relative.

weightByCenter

The contribution of the quantized data points can be weighted by the distance to the origin. This parameter enables/disables the use of weighting.

Returns

Sampled point cloud Release returned native handles with using or delete(), including handles nested in results.

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.