Note
This C++ sample has a corresponding Python sample.
CSV Viewer Sample using C++
The sample metavision_csv_viewer.cpp
shows how to use Metavision SDK pipeline utility to read and display events from a CSV formatted event-based file
(e.g. CSV file produced by File to CSV Sample). It also shows how to create a class deriving from
Metavision::BaseStage
that produces data but consumes nothing.
The source code of this sample can be found in <install-prefix>/share/metavision/sdk/core/cpp_samples/metavision_adaptive_rate
when installing Metavision SDK from installer or packages. For other deployment methods, check the page
Path of Samples.
How to start
First, compile the sample as described in this tutorial.
To start the sample based on recorded data, provide the full path to a CSV file (for example, a RAW file from our Sample Recordings converted to CSV format using the metavision_file_to_csv sample):
Linux
./metavision_csv_viewer -i FILE_NAME.csv
Windows
metavision_csv_viewer.exe -i FILE_NAME.csv
To check for additional options:
Linux
./metavision_csv_viewer -h
Windows
metavision_csv_viewer.exe -h
Code Notes
The code of this sample is explained in the page Building a Pipeline with a Custom Stage within the chapter on pipelines.