Note

This C++ sample has a corresponding Python sample.

RAW to CSV Sample using C++

The sample metavision_raw_to_csv.cpp shows how to use Metavision Core SDK pipeline utility to convert an event-based RAW file to a CSV formatted event-based file. It also shows how to customize an instance of Metavision::BaseStage to write to a file.

The source code of this sample can be found in <install-prefix>/share/metavision/sdk/driver/samples/metavision_raw_to_csv when installing Metavision SDK from installer or packages. For other deployment methods, check the section Path of Samples and Applications.

Expected Output

The sample reads data from a RAW file and writes them to a CSV file in the execution path.

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 RAW file (here, we use a file from our Sample Recordings):

Linux

./metavision_raw_to_csv -i spinner.raw

Windows

metavision_raw_to_csv.exe -i spinner.raw