Esempio n. 1
0
def get_spatial(cam, bright, radiance, L=50):
    imgs = []
    for i in range(L):
        imgs.append(cam.grab(radiance))
    value = get_int_imgs(imgs)
    if bright:
        return {cam.get_photons(radiance=radiance): value}
    return value
Esempio n. 2
0
def get_temporal(cam, bright, radiance):
    img1 = cam.grab(radiance)
    img2 = cam.grab(radiance)
    imgs = get_int_imgs((img1, img2))
    value = {'sum': np.sum(imgs['sum']), 'pvar': np.sum(imgs['pvar'])}
    if bright:
        return {cam.get_photons(radiance=radiance): value}
    return value
Esempio n. 3
0
def get_spatial(cam, radiance, L=50):
    imgs = []
    for i in range(L):
        imgs.append(cam.grab(radiance))
    return get_int_imgs(imgs)
Esempio n. 4
0
def get_temporal(cam, radiance):
    img1 = cam.grab(radiance)
    img2 = cam.grab(radiance)
    imgs = get_int_imgs((img1, img2))
    return {'sum': np.sum(imgs['sum']), 'pvar': np.sum(imgs['pvar'])}
Esempio n. 5
0
def get_spatial(cam, radiance, L=50):
    imgs = []
    for i in range(L):
        imgs.append(cam.grab(radiance))
    return get_int_imgs(imgs)
Esempio n. 6
0
def get_temporal(cam, radiance):
    img1 = cam.grab(radiance)
    img2 = cam.grab(radiance)
    imgs = get_int_imgs((img1, img2))
    return {'sum': np.sum(imgs['sum']), 'pvar': np.sum(imgs['pvar'])}