ppf_match_3d_computeNormalsPC3d
import { ppf_match_3d_computeNormalsPC3d } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;PCInput point cloud to compute the normals for.
PCNormalsOutput destination, filled by the native operation. Output point cloud
NumNeighborsNumber of neighbors to take into account in a local region
FlipViewpointShould normals be flipped to a viewing direction?
viewpointreturn: Returns 0 on success
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.