Luminance image analysis for display visibility in cockpits