Paper: Red i reduction with artificial retinal networks. Tom Murphy VII, SIGBOVIK 2015.

See the source code if you like.

Some 24-bit images from the paper: