hdrstats.image

dat parsing and statistical analysis.

hdrstats.image.img_size(img)[source]

returns x and y pixel dimensions of image

hdrstats.image.get_omegas(image, xres, yres)[source]

get solid angle of each pixel in image

hdrstats.image.get_cos(res)[source]

generate a 2D array of cos(r) values

hdrstats.image.read_im_to_array(image, xres, yres, color=False, prepipe=None)[source]

read hdr image to numpy array

prepipe should be a format string correctly placing image, eg:

“pcomb -s .8 {} | pfilt -1 -e 1 -x 500 -y 500”

hdrstats.image.img_2_stats(img, res=None, omegas=None, cos=None, scale=179, hblur=False)[source]

read image and return Ev and luminance ratio

hdrstats.image.evalglare(img, options='', detail=True, caperr=False, **kwargs)[source]

return dict of evalglare output

hdrstats.image.dgp_comp(srcs)[source]