function luminance = hdrGetLuminance(gamma, LCDLevels, LEDLevels, maxLuminance)

LCDLevels = LCDLevels(:)/max(LCDLevels);
LEDLevels = LEDLevels(:)/max(LEDLevels);
luminance = LCDLevels.^gamma.*LEDLevels*maxLuminance;