savePointCloud
import { savePointCloud } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSfilename, vertices, normals, rgb
FUNCTIONsavePointCloud
RETURN TYPEvoid
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;filenameName of the file
verticesvertex coordinates, each value contains 3 floats
normalsper-vertex normals, each value contains 3 floats
rgbper-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.