chensong1995 / E-CIR

Event-Enhanced Continuous Intensity Recovery (CVPR 2022)
MIT License
42 stars 2 forks source link

Questions about create_hdf5_edi.py #11

Closed ice-cream567 closed 11 months ago

ice-cream567 commented 11 months ago

Hello, I would like to know what the following code does in the load_data function and why it is necessary to subtract 1 from the coordinate value.Thanks. if flip: x = 239 - x y = 179 - y else: x = x - 1 y = y - 1

chensong1995 commented 11 months ago

Hi ice-cream567,

Thanks for your question! This is to convert the 1-indexed pixel coordinates to 0-indexed pixel coordinates.

I hope this helps! Let me know if you have further concerns.