v2e icon indicating copy to clipboard operation
v2e copied to clipboard

Setting arbitrary output size for v2e output dimension

Open gwgknudayanga opened this issue 2 years ago • 6 comments

Hi, Is it possible to set the output size of the v2e as 100x100 instead of the dimension of --dvs346? actually I set ---outptut_width and --output_height to 100 , but it gave error saying to set dvs240 or dvs 346. Actually i need to generate events for events of size 100x100 dimension. Thanks !

gwgknudayanga avatar Sep 19 '22 10:09 gwgknudayanga

Absolutely, you can use --output_width and --output_height. However note that you also need to adapt the aedaat output class to write an AEDAT-2.0 format, or else just use a subspace of the DVS128 class.

Tobi

tobidelbruck avatar Sep 19 '22 11:09 tobidelbruck

Thanks Tobi, I have added it like this to the file. SUPPORTED_SIZES=((346,260),(240,180),(100,100)) And then run again the command. But still it did not run correctly. Do i need to build the code or something like that? If it is how should i proceed? . Thank you ! Thanks and Rgds, Udayanga

gwgknudayanga avatar Sep 19 '22 13:09 gwgknudayanga

Just below SUPPORTED_SIZES in the file you can see the switch statement. Please try to look at code before posting.

tobidelbruck avatar Sep 19 '22 14:09 tobidelbruck

Sorry for that , Thank you !

gwgknudayanga avatar Sep 20 '22 08:09 gwgknudayanga

What output do you want? Please be more specific and provide logging output.

If you want AEDAT-2.0 format you will need to modify /add to the aedat_output.py. For text output you shouldn't need to change anything. Just disable the aedat output (please read the --help output)

tobidelbruck avatar Oct 11 '22 08:10 tobidelbruck

Thanks Tobi. I disabled the aedat output and used h5 output.

gwgknudayanga avatar Oct 12 '22 04:10 gwgknudayanga

It is very easy to clone the DVS640 class in jAER to use jAER to play with the output of v2e. You just need to make the AER address format compatible. It is pure DVS output so very simple to pack into 32-bit int address field supported by AEDAT-2.0

tobidelbruck avatar Jul 26 '23 16:07 tobidelbruck