Skip to content

ppf_match_3d_computeNormalsPC3d

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

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

ARGUMENTSPC, PCNormals, NumNeighbors, FlipViewpoint
FUNCTIONppf_match_3d_computeNormalsPC3d
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Compute the normals of an arbitrary point cloud computeNormalsPC3d uses a plane fitting approach to smoothly compute local normals. Normals are obtained through the eigenvector of the covariance matrix, corresponding to the smallest eigen value. If PCNormals is provided to be an Nx6 matrix, then no new allocation is made, instead the existing memory is overwritten.

ppf_match_3d_computeNormalsPC3d(PC: Mat, PCNormals: Mat, NumNeighbors: number, FlipViewpoint: boolean, viewpoint: Vec3f): number;
PC

Input point cloud to compute the normals for.

PCNormals

Output destination, filled by the native operation. Output point cloud

NumNeighbors

Number of neighbors to take into account in a local region

FlipViewpoint

Should normals be flipped to a viewing direction?

viewpoint

return: Returns 0 on success

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.