<< Chapter < Page Chapter >> Page >

Using the experience we have gained so far, and the knowledge gained in introductory DSP courses, let’s formulate another local operator. The goal is to compress luminanceas well as the adaptive gain control had done while maintaining fine detail and sharpness. Recall that averaging can be donethrough convolution with a filter, and we can manipulate the weight of the average by changing the shape of the filter. It seemsnatural that the pixel being mapped should be weighted most heavily, so we may decide to use a Gaussian to convolve a smalllocal area around the pixel being mapped to find a weighted average to map the pixel. You may be concerned with the production of haloswithout the adaptive gain control explored in sections 3.4, but let’s see if the natural shape of the Gaussian will be able to prevent them without extra control.

Example Gaussian:

0.0035 0.0114 0.0183 0.0114 0.0035

0.0114 0.0591 0.1353 0.0591 0.0114

0.0183 0.1353 1.0000 0.1353 0.0183

0.0114 0.0591 0.1353 0.0591 0.0114

0.0035 0.0114 0.0183 0.0114 0.0035

Think back to your DSP class again, and recall that convolution in the time domain is equivalent tomultiplication in the frequency domain. To speed up the process, convolution can be done using the DFTs of the Gaussian and thesmall local area. Using MATLAB’s efficient FFT algorithm, the whole image conversion and tone mapping process is on the order ofseconds. The algorithm does not blur the image to the degree that adaptive gain control does, but since it does still blur the imageslightly, it also employs the edge preservation technique used in the later version of the adaptive gain control method.

Comparing the local convolution mapping with the adaptive gain control method, the former clearly retains moredetail in the wall artwork and the stained-glass window to the right.

Local Operator with Convolution

Adaptive Gain Control with Edge Preservation; Radius = 2, Threshold = 5, Max Difference = 1.1, Number Different = 1

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Elec 301 projects fall 2006. OpenStax CNX. Sep 27, 2007 Download for free at http://cnx.org/content/col10462/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Elec 301 projects fall 2006' conversation and receive update notifications?

Ask