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 SDK pipeline utility to convert an event-based file (RAW or HDF5) to a CSV formatted 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.

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):


./metavision_raw_to_csv -i spinner.raw


metavision_raw_to_csv.exe -i spinner.raw