Non-linear masking techniques

by Billy Biggs <>

I have been experimenting with non-linear masking techniques for digital photographs. There has been a lot of inspiration for this work. First is the wealth of terrible photographs I have taken facing into the sun or in bright rooms which I would like to salvage. Second is a lot of great recent work in colour reproduction and high dynamic range imaging which we can take and apply to traditional digital photographs.

One paper which impressed me was:

The paper demonstrates a simple operator based on a mask image, which should be a low-pass luminance map of the image. The operator is basically:


Where I is the input intensity, m is the value from the mask and O is our output pixel.

For example, here is an output image.

And here is the input image:

Here is the luminance mask I used:

Here is the histogram of the luminance of the original photo:

Here is the histogram of the luminance of the output photo:

And here is the histogram of the luminance map used:

How can we improve this?

The natural way to improve on this technique seemed to be to use perceptual lightness instead of luminance measures to decide how to change the image, and also to correct it. It seems wrong to change the colour of the pixels, really we just want to change the brightness.

Here are my results from experiments in using CIECAM02 perceptual attributes and transfer functions on the images. However, the results are not very impressive.

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [IMG] bd-luma.png 05-Nov-2003 20:02 16K [IMG] bd-n2-ipt-lightness.png 05-Nov-2003 20:26 17K [IMG] bd-n2-luma.png 05-Nov-2003 20:04 21K [IMG] bd-n2.jpg 31-Oct-2003 10:51 59K [IMG] bd-n2.png 31-Oct-2003 10:51 407K [IMG] bd.jpg 31-Oct-2003 10:51 62K [IMG] bd.png 31-Oct-2003 10:51 402K [IMG] bdl-luma.png 05-Nov-2003 20:04 14K [IMG] bdl.jpg 31-Oct-2003 10:51 10K [IMG] bdl.png 31-Oct-2003 10:51 40K [TXT] examples.html 26-Nov-2003 16:04 4.5K [DIR] examples/ 16-Nov-2003 14:09 - [TXT] examples2.html 16-Nov-2003 14:14 2.0K [TXT] examples3.html 16-Nov-2003 14:09 2.2K [IMG] nlm.png 31-Oct-2003 10:52 1.4K