EVT3 RAW File decoder
The sample metavision_evt3_raw_file_decoder.cpp
demonstrates how to decode an EVT3 format RAW file
and write the decoded events in a CSV file.
The source code of this sample can be found in <install-prefix>/share/metavision/samples/metavision_evt3_raw_file_decoder
when installing Metavision SDK from installer or packages. For other deployment methods, check the page
Path of Samples.
Note
This code demonstrates a simple version of the EVT3 decoder. The SDK ships additional versions that are described in EVT3 Decoding Configuration page.
Expected Output
The sample creates two CSV files from the RAW file:
The CD CSV file with the format
x;y;polarity;timestamp
The Trigger output CSV file (if any) with the format
value;id;timestamp
How to start
First, compile the sample as described in this tutorial.
To start the sample provide the full path to a RAW file (for example, a file from our Sample Recordings:
Linux
metavision_evt3_raw_file_decoder INPUT_FILENAME CD_CSV_OUTPUT_FILENAME
Windows
metavision_evt3_raw_file_decoder.exe INPUT_FILENAME CD_CSV_OUTPUT_FILENAME
Optionally, you can also generate the CSV file containing the Trigger Events:
Linux
metavision_evt3_raw_file_decoder INPUT_FILENAME CD_CSV_OUTPUT_FILENAME TRIGGER_CSV_OUTPUT_FILENAME
Windows
metavision_evt3_raw_file_decoder.exe INPUT_FILENAME CD_CSV_OUTPUT_FILENAME TRIGGER_CSV_OUTPUT_FILENAME