Zivid C++ API 2.14.0+e4a0c4a9-1
Zivid::Experimental::PointCloudExport Namespace Reference

Namespaces

namespace  FileFormat
 

Enumerations

enum class  ColorSpace { sRGB , linearRGB }
 Color space to use when saving frame. More...
 

Functions

ZIVID_CORE_EXPORT void exportFrame (const Zivid::Frame &frame, const FileFormat::ZDF &specification)
 Save frame to ZDF file.
 
ZIVID_CORE_EXPORT void exportFrame (const Zivid::Frame &frame, const FileFormat::PLY &specification)
 Save frame to PLY file.
 
ZIVID_CORE_EXPORT void exportFrame (const Zivid::Frame &frame, const FileFormat::XYZ &specification)
 Save frame to XYZ file.
 
ZIVID_CORE_EXPORT void exportFrame (const Zivid::Frame &frame, const FileFormat::PCD &specification)
 Save frame to PCD file.
 

Enumeration Type Documentation

◆ ColorSpace

Color space to use when saving frame.

Enum used to specify the color space of the point cloud when saving a frame to a file.

Enumerator
sRGB 
linearRGB 

Function Documentation

◆ exportFrame() [1/4]

ZIVID_CORE_EXPORT void Zivid::Experimental::PointCloudExport::exportFrame ( const Zivid::Frame & frame,
const FileFormat::PCD & specification )

Save frame to PCD file.

Saves frame object to a PCD file. This function stores the ordered point cloud with a header that indicates an unordered point cloud. Since SDK 2.5, it is possible to export PCD with correct header by setting Configuration/APIBreakingBugFixes/FileFormats/PCD/UseOrganizedFormat in Config.yml file. See https://support.zivid.com/en/latest/reference-articles/point-cloud-structure-and-output-formats.html#organized-pcd-format. Specify the color space of the point cloud data in specification parameter.

Parameters
frameFrame object to save
specificationSpecification for saving frame in PCD format

◆ exportFrame() [2/4]

ZIVID_CORE_EXPORT void Zivid::Experimental::PointCloudExport::exportFrame ( const Zivid::Frame & frame,
const FileFormat::PLY & specification )

Save frame to PLY file.

Saves frame object to a PLY file. Specify the layout and color space of the point cloud data in specification parameter.

Parameters
frameFrame object to save
specificationSpecification for saving frame in PLY format

◆ exportFrame() [3/4]

ZIVID_CORE_EXPORT void Zivid::Experimental::PointCloudExport::exportFrame ( const Zivid::Frame & frame,
const FileFormat::XYZ & specification )

Save frame to XYZ file.

Saves frame object to a XYZ file. XYZ (position) and RGB (color) values are separated with white space. Each new point is separated by the newline character. Specify the color space of the point cloud data in specification parameter.

Parameters
frameFrame object to save
specificationSpecification for saving frame in XYZ format

◆ exportFrame() [4/4]

ZIVID_CORE_EXPORT void Zivid::Experimental::PointCloudExport::exportFrame ( const Zivid::Frame & frame,
const FileFormat::ZDF & specification )

Save frame to ZDF file.

Saves frame object to a ZDF file.

Parameters
frameFrame object to save
specificationSpecification for saving frame in ZDF format