in ParametricLights.py [0:0]
def panoweight(im):
hh, ww = np.shape(im)[0:2]
offset = np.pi / (2 * hh)
ang = np.linspace(offset, np.pi - offset, hh)
wt = np.sin(ang)
wt2 = np.transpose(np.tile(wt, (ww, 1)))
J = im * wt2
return J