Non-linear masking techniques
by Billy Biggs <firstname.lastname@example.org>
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.
Name Last modified Size Description
Parent Directory - bd-luma.png 05-Nov-2003 23:02 16K bd-n2-ipt-lightness.png 05-Nov-2003 23:26 17K bd-n2-luma.png 05-Nov-2003 23:04 21K bd-n2.jpg 31-Oct-2003 13:51 59K bd-n2.png 31-Oct-2003 13:51 407K bd.jpg 31-Oct-2003 13:51 62K bd.png 31-Oct-2003 13:51 402K bdl-luma.png 05-Nov-2003 23:04 14K bdl.jpg 31-Oct-2003 13:51 10K bdl.png 31-Oct-2003 13:51 40K examples.html 26-Nov-2003 19:04 4.5K examples/ 16-Nov-2003 17:09 - examples2.html 16-Nov-2003 17:14 2.0K examples3.html 16-Nov-2003 17:09 2.2K nlm.png 31-Oct-2003 13:52 1.4K