Public Member Functions | Private Member Functions | Private Attributes | List of all members
OutputSensorFile Class Reference

This class is for output sensor file. More...

#include <output_sensor_file.h>

Inheritance diagram for OutputSensorFile:
Inheritance graph
[legend]

Public Member Functions

void close ()
 Closes all opened output files. More...
 
void open (std::string input_file_name, int image_width, int image_height)
 Opens output files (video and/or csv) More...
 
 OutputSensorFile ()
 Constructor for OutputSensorFile class. More...
 
void write (const cv::Mat &stitched_depth_frame_16bb, const cv::Mat &stitched_ir_frame_16bb, int image_width, int image_height)
 Writes one frame to output video file. More...
 
 ~OutputSensorFile ()
 

Private Member Functions

void closeOutputVideoFile ()
 Closes output video file. More...
 
void openOutputVideoFile (const std::string &input_file_name, int image_width, int image_height)
 Opens output video file. More...
 
void writeOutputVideoFile (const cv::Mat &image)
 Writes output video file. More...
 

Private Attributes

std::string output_video_file_name_
 
cv::VideoWriter * output_video_writer_
 
bool video_enabled_
 

Detailed Description

This class is for output sensor file.

Definition at line 16 of file output_sensor_file.h.

Constructor & Destructor Documentation

◆ OutputSensorFile()

OutputSensorFile::OutputSensorFile ( )

Constructor for OutputSensorFile class.

Definition at line 13 of file output_sensor_file.cpp.

◆ ~OutputSensorFile()

OutputSensorFile::~OutputSensorFile ( )
inline

Definition at line 28 of file output_sensor_file.h.

Member Function Documentation

◆ close()

void OutputSensorFile::close ( )
virtual

Closes all opened output files.

Implements IOutputSensor.

Definition at line 81 of file output_sensor_file.cpp.

◆ closeOutputVideoFile()

void OutputSensorFile::closeOutputVideoFile ( )
private

Closes output video file.

Definition at line 121 of file output_sensor_file.cpp.

◆ open()

void OutputSensorFile::open ( std::string  input_file_name,
int  image_width,
int  image_height 
)
virtual

Opens output files (video and/or csv)

Parameters
input_file_nameInput file name
image_widthImage Width
image_heightImage Height

Implements IOutputSensor.

Definition at line 27 of file output_sensor_file.cpp.

◆ openOutputVideoFile()

void OutputSensorFile::openOutputVideoFile ( const std::string &  input_file_name,
int  image_width,
int  image_height 
)
private

Opens output video file.

Parameters
input_file_nameInput file name
image_widthImage Width
image_heightImage Height

Definition at line 93 of file output_sensor_file.cpp.

◆ write()

void OutputSensorFile::write ( const cv::Mat &  stitched_depth_frame_16bb,
const cv::Mat &  stitched_ir_frame_16bb,
int  image_width,
int  image_height 
)
virtual

Writes one frame to output video file.

Parameters
stitched_depth_frame_16bb- 16-bit stitched depth input
stitched_ir_frame_16bb- 16Bit stitched IR input
image_width- input image width
image_height- input image height

Implements IOutputSensor.

Definition at line 43 of file output_sensor_file.cpp.

◆ writeOutputVideoFile()

void OutputSensorFile::writeOutputVideoFile ( const cv::Mat &  image)
private

Writes output video file.

Parameters
imageOutput image

Definition at line 109 of file output_sensor_file.cpp.

Member Data Documentation

◆ output_video_file_name_

std::string OutputSensorFile::output_video_file_name_
private

Definition at line 33 of file output_sensor_file.h.

◆ output_video_writer_

cv::VideoWriter* OutputSensorFile::output_video_writer_
private

Definition at line 32 of file output_sensor_file.h.

◆ video_enabled_

bool OutputSensorFile::video_enabled_
private

Definition at line 31 of file output_sensor_file.h.


The documentation for this class was generated from the following files:


adi_3dtof_image_stitching
Author(s):
autogenerated on Fri Mar 21 2025 02:27:20