Time-of-Flight Library(ToF) 3.13.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.
 
 CsfWriter (StringView file_location, Camera &camera)
 Construct the csf writer from a camera.
 
void write_frame (const Data &frame)
 Write frame to csf file.
 

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() [1/3]

chronoptics::tof::CsfWriter::CsfWriter ( tof_csf_writer_t  ptr = nullptr)
inline

Construct from pointer.

Definition at line 27 of file csf_writer.hpp.

◆ CsfWriter() [2/3]

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.

◆ CsfWriter() [3/3]

chronoptics::tof::CsfWriter::CsfWriter ( StringView  file_location,
Camera camera 
)
inline

Construct the csf writer from a camera.

Parameters
file_locationPath to where the csf file should be created
cameraThe camera to get the camera config and calibration file from

Definition at line 45 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 52 of file csf_writer.hpp.