Octree_createWithDepth
import { Octree_createWithDepth } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSmaxDepth, pointCloud, colors, size
FUNCTIONOctree_createWithDepth
RETURN TYPEOctree | null
Create an Octree from the PointCloud data with the specific maxDepth
Octree_createWithDepth(maxDepth: number, size: number, origin: Point3f, withColors: boolean): Octree | null;3 available overloads
Octree_createWithDepth(maxDepth: number, pointCloud: number): Octree | null;Octree_createWithDepth(maxDepth: number, pointCloud: number, colors: Point3f): Octree | null;Octree_createWithDepth(maxDepth: number, size: number, origin: Point3f, withColors: boolean): Octree | null;maxDepthMax depth of the octree
pointCloudpoint cloud data, should be 3-channel float array
colorscolor attribute of point cloud in the same 3-channel float format
sizebounding box size for the Octree
originInitial center coordinate
withColorsWhether to keep per-point colors or not
Returns
resulting Octree
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.