Recovering high dynamic range radiance maps from photographs