Event Frame Generation Sample using C++
The sample event_frame_generation.cpp
shows how to generate and display histo/diff event frames
using EventFrameDiffGenerationAlgorithm
and EventFrameHistoGenerationAlgorithm
algorithms.
It also implements the capability to convert an event-based record to a histo/diff RAW file.
The source code of this sample can be found in <install-prefix>/share/metavision/sdk/core/cpp_samples/metavision_event_frame_generation
when installing Metavision SDK from installer or packages. For other deployment methods, check the page
Path of Samples.
Expected Output
The sample visualizes histo/diff event frames.
Here is an example using here the file spinner.hdf5
from our Sample Recordings in diff mode.
How to start
First, compile the sample as described in this tutorial.
To start the sample in diff mode on a recording (here, we use the file spinner.hdf5
from our Sample Recordings), run:
Linux
./metavision_event_frame_generation -i spinner.hdf5 --diff
Windows
metavision_event_frame_generation.exe -i spinner.hdf5 --diff
To start the sample in histo mode, run:
Linux
./metavision_event_frame_generation -i spinner.hdf5 --histo
Windows
metavision_event_frame_generation.exe -i spinner.hdf5 --histo
To check for additional options:
Linux
./metavision_event_frame_generation -h
Windows
metavision_event_frame_generation.exe -h