Tone Mapping
To reproduce a great spectrum of luminance levels we implemented Ward's tone mapping. To compute the scale factor for that algorithm we approximated the world adaptation luminance by computing the logarithmic average luminance of all pixels.The first image has no tone mapping applied, for the second weak tone mapping was used. It increases visibility slightly.