Simulating the visual experience of very bright and very dark scenes using afterimages and mesopic effects