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
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.
No description provided.
The text was updated successfully, but these errors were encountered: