Skip to content

Convert AEDAT4 files from DV into .mat files for matlab

License

Notifications You must be signed in to change notification settings

bald6354/aedat4tomat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aedat4tomat

Convert AEDAT4 files from DV into .mat files for matlab. Python is required (recommend Anaconda).

If you find this code useful in your research, please consider citing:

@article{baldwin2020event,
  title={Event Probability Mask (EPM) and Event Denoising Convolutional NeuralNetwork (EDnCNN) for Neuromorphic Cameras},
  author={Baldwin, R and Almatrafi, Mohammed and Asari, Vijayan and Hirakawa, Keigo},
  journal={arXiv preprint arXiv:2003.08282},
  year={2020}
}

First install the dv module...

pip install dv

Example Conversion:

foo@bar:~$ python /home/username/aedat4tomat.py -i "dvFile.aedat4" -o "dvFile.mat"

You can also make a simple bash script that will process all aedat4 files in a directory into several .mat files. Then just call it from MATLAB using the unix command.

unix(['./processFolderWithInput ' pathToAedatFiles])

(This code is designed to work with aedat4 that contains frames, events, and imu streams. If your data does not have all these fields, just comment out the sections of aedat4tomat.py that deal with the data you are missing.)

About

Convert AEDAT4 files from DV into .mat files for matlab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published