Skip to content

savePointCloud

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

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

ARGUMENTSfilename, vertices, normals, rgb
FUNCTIONsavePointCloud
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Saves a point cloud to a specified file.

The function saves point cloud to the specified file. File format is chosen based on the filename extension.

savePointCloud(filename: EmbindString, vertices: Mat, normals: Mat, rgb: Mat): void;
3 available overloads
savePointCloud(filename: EmbindString, vertices: Mat): void;
savePointCloud(filename: EmbindString, vertices: Mat, normals: Mat): void;
savePointCloud(filename: EmbindString, vertices: Mat, normals: Mat, rgb: Mat): void;
filename

Name of the file

vertices

vertex coordinates, each value contains 3 floats

normals

per-vertex normals, each value contains 3 floats

rgb

per-vertex colors, each value contains 3 floats

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.