decide threshold based on regional luminance; fairly dumb setting, but seems rather potent