This C++ sample has a corresponding Python sample.

CSV Viewer Sample using C++

The sample metavision_csv_viewer.cpp shows how to use Metavision Core SDK pipeline utility to read and display events from a CSV formatted event-based file (e.g. CSV file produced by RAW to CSV Sample). It also shows how to create a class deriving from Metavision::BaseStage that produces data but consumes nothing.

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


./metavision_csv_viewer -i FILE_NAME.csv


metavision_csv_viewer.exe -i FILE_NAME.csv

To check for additional options:


./metavision_csv_viewer -h


metavision_csv_viewer.exe -h

Code Notes

The code of this sample is explained in the page about Building a Pipeline with a Custom Stage within the chapter on pipelines.