computes gamma-compensated "brightness" of slides