You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We provide our implementation of PIX2NVS, a tool for converting pixel frames to brightness spike events as generated by neuromorphic vision sensors (e.g. DAVIS-240).
A full description of the operation of this tool can be found in our paper:
[1] Yin Bi, Yiannis Andreopoulos, ‘PIX2NVS: Parameterized Conversion of Pixel-domain Video Frames to Neuromorphic Vision Streams’ [C], IEEE International Conference on Image Processing (ICIP), Sept. 17-20, 2017, Beijing, China
If you use the code in this repository, please cite the paper above. This tool is provided under the [GNU General Public Use v3.0 license].
Building Source
All dependencies are located in the source folder. To build from source, change your working directory to this repository's home folder and run:
g++ -o pix2nvs src/*.cpp # to build from source
./pix2nvs # to run using default parameters
Running Options
Option
Description
-r or --reference
set to (1, 2, or 3) to specify one of the reference frame update methods.
-m or --maxevents
will specify the maximum number of events generated between two frames
-b or --blocksize
will set the block size for local inhibition
-a or --adaptive
will set the co-efficient shift for adaptive thresholding, set to (0) to disable
The reference frame update option can be set to any of the following:
r
Reference Frame Update Method
1
copy last frame from source
2
update reference frame using only generated events, with history decay
3
update reference frame using only generated events, without history decay
Example Usage
To extract events from videos located in the input folder:
./pix2nvs -r 3 -a 0 -b 4
All outputs will be located in the folder "Events". The output from PIX2VNS using these parameters is visualized in the following figure: