1#ifndef _CHRONOPTICS_TOF_CSF_WRITER_HPP_
2#define _CHRONOPTICS_TOF_CSF_WRITER_HPP_
4#include <chronoptics/tof/csf_writer.h>
6#include <chronoptics/tof/camera.hpp>
7#include <chronoptics/tof/camera_config.hpp>
8#include <chronoptics/tof/calibration.hpp>
9#include <chronoptics/tof/data.hpp>
11namespace chronoptics {
21class CsfWriter :
public detail::Base<tof_csf_writer, tof_csf_writer_delete> {
32 CsfWriter(StringView file_location,
const Camera &camera) :
CsfWriter(tof_csf_writer_new_from_camera(file_location, *reinterpret_cast<const tof_camera_t*>(&camera), TOF_ERROR_HANDLER{})) {}
40 CsfWriter(StringView file_location,
const CameraConfig &camera_config,
const Calibration &calibration, StringView serial) :
CsfWriter(tof_csf_writer_new_from_raw_data(file_location, *reinterpret_cast<const tof_camera_config_t*>(&camera_config), *reinterpret_cast<const tof_calibration_t*>(&calibration), serial, TOF_ERROR_HANDLER{})) {}
46 return tof_csf_writer_write_frame(this->ptr_, *
reinterpret_cast<const tof_data_t*
>(&frame), TOF_ERROR_HANDLER{});
This class contains all the calibration information.
This class allows you to view/edit the camera settings.
The main interface to the depth cameras.
The csf writer class takes care of writing depth frames to disk.
CsfWriter(tof_csf_writer_t ptr=nullptr)
Construct from pointer.
void write_frame(const Data &frame)
Write frame to csf file.
CsfWriter(StringView file_location, const CameraConfig &camera_config, const Calibration &calibration, StringView serial)
Construct csf writer from calibration and configuration.
CsfWriter(StringView file_location, const Camera &camera)
Construct the csf writer from a camera.
This is the class that contains depth or image data.