This C++ sample has a corresponding Python sample.
Filtering using C++
metavision_filtering.cpp shows how to use Metavision Core SDK pipeline utility to filter and display events.
It also shows how to capture the keys pressed in a display window and use them to modify the behavior of the stages
while the pipeline is running.
The following filters can be applied via keyboard keys:
Metavision::PolarityFilterAlgorithmused to show only events of positive polarity
Metavision::PolarityFilterAlgorithmused to show only events of negative polarity
The sample visualizes CD events from an event-based device or a RAW file after filtering:
How to start
First, compile the sample as described in this tutorial.
To start the sample based on the live stream from your camera, run:
To start the sample based on recorded data, provide the full path to a RAW file (here, we use the file
from our Sample Recordings):
./metavision_filtering -i spinner.raw
metavision_filtering.exe -i spinner.raw