4 #ifndef __RS_CONVERTER_CONVERTER_CSV_H 5 #define __RS_CONVERTER_CONVERTER_CSV_H 10 #include "../converter.hpp" 25 , _streamType(streamType)
31 return "CSV converter";
52 <<
"_" << depthframe.get_profile().stream_name()
53 <<
"_" << std::setprecision(14) << std::fixed << depthframe.get_timestamp()
56 std::stringstream metadata_file;
57 metadata_file << _filePath
58 <<
"_" << depthframe.get_profile().stream_name()
59 <<
"_metadata_" << std::setprecision(14) << std::fixed << depthframe.get_timestamp()
66 [filenameS, metadataS, depthframe] {
67 std::ofstream fs(filenameS, std::ios::trunc);
70 for (
int y = 0;
y < depthframe.get_height();
y++) {
73 for (
int x = 0;
x < depthframe.get_width();
x++) {
74 fs << delim << depthframe.get_distance(
x,
y);
GLsizei const GLchar *const * string
rs2_stream
Streams are different types of data provided by RealSense devices.