Note

This C++ sample has a corresponding Python sample.

CSV Viewer Sample using C++

The sample metavision_csv_viewer.cpp shows how to read and display events from a CSV formatted event-based file (e.g. CSV file produced by File to CSV Sample).

The source code of this sample can be found in <install-prefix>/share/metavision/sdk/core/cpp_samples/metavision_csv_viewer when installing Metavision SDK from installer or packages. For other deployment methods, check the page Path of Samples.

Expected Output

The sample visualizes CD events read from a CSV file:

Expected Output from Metavision CSV Viewer sample

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