Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use esim to simulate color events like CED dataset? #105

Open
DachunKai opened this issue Jul 4, 2022 · 3 comments
Open

How to use esim to simulate color events like CED dataset? #105

DachunKai opened this issue Jul 4, 2022 · 3 comments

Comments

@DachunKai
Copy link

No description provided.

@eugenelyj
Copy link

Also working on this...Does anyone know?
I searched how to simulate the Bayer from a RGB image and found the code

import numpy as np # of course

im = cv.imread(...)
(height, width) = im.shape[:2]
(B,G,R) = cv.split(im)

bayer = np.empty((height, width), np.uint8)

bayer[0::2, 0::2]= G[0::2, 0::2] # top left
bayer[1::2, 0::2]= R[1::2, 0::2] # top right
bayer[0::2, 1::2]= B[0::2, 1::2] # bottom left
bayer[1::2, 1::2]= G[1::2, 1::2] # bottom right

So if my understanding is correct, then the event simulations are conducted on each of these Bayer channels. The results will be four event sequences but each only has 1/4 resolution.

@eugenelyj
Copy link

@supitalp Could you help?

@eugenelyj
Copy link

I find the solution is in the branch feature/color :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants