Time-of-Flight Library(ToF)  3.2.2
chronoptics::tof::CsfWriter Class Reference

The csf writer class takes care of writing depth frames to disk. More...

#include <csf_writer.hpp>

+ Inheritance diagram for chronoptics::tof::CsfWriter:

Public Member Functions

 CsfWriter (tof_csf_writer_t ptr=nullptr)
 Construct from pointer.
 
 CsfWriter (StringView file_location, const CameraConfig &camera_config, const Calibration &calibration, StringView serial)
 Construct csf writer from calibration and configuration. More...
 
void write_frame (const Data &frame)
 Write frame to csf file. More...
 

Detailed Description

The csf writer class takes care of writing depth frames to disk.

The class has to be created from either a Camera or csf reader, because it needs information about the camera that was used to record the depth frames. Therefore you should only write depth frames coming from one camera into the same writer

Definition at line 24 of file csf_writer.hpp.

Constructor & Destructor Documentation

◆ CsfWriter()

chronoptics::tof::CsfWriter::CsfWriter ( StringView  file_location,
const CameraConfig camera_config,
const Calibration calibration,
StringView  serial 
)
inline

Construct csf writer from calibration and configuration.

Parameters
file_locationPath to where the csf file should be created
camera_configCamera configuration
calibrationCalibration
serialSerial number of camera

Definition at line 37 of file csf_writer.hpp.

Member Function Documentation

◆ write_frame()

void chronoptics::tof::CsfWriter::write_frame ( const Data frame)
inline

Write frame to csf file.

Parameters
frameA data frame

Definition at line 44 of file csf_writer.hpp.