<< Chapter < Page Chapter >> Page >

Would a local operator perform luminance compression better than a global one? One thing to take note ofwhen working with a local operator is that, when looking at a small window of values in an image, if that window happens to encompassan edge between two surfaces with greatly varying intensities, and one weights the values only with respect to their positions, thenvalues across this edge may have a negative effect on the mapped pixel. For example, if one wishes to map a bright pixel close tosuch an edge with dark pixels on the other side, and a window used takes into account the values across that edge, then the influenceof the dark pixels on the averaging of the local area would be disproportionate, causing the bright pixel to appear much darkerthan one might expect it to be. The same thing would happen to the dark pixels across the edge when they are mapped, causing them tobe mapped much brighter than one might expect. This effect is usually manifested as halos across sharp boundaries of intensity.However, if values with extreme deviations can be ignored from the averaging, then the final mapping would more accurately replicatethe original scene in reducing the advent of halos, caused by averages influenced by extreme values. This is the motivation for again controlled mapping method that attempts to weight only those neighboring pixels with similar intensities to the pixel we wish tomap, as suggested by Pattanaik [1].

The idea is that surrounding values which are too much brighter or darker than the pixel being mapped should beignored from the weighing function in mapping a pixel. For example, if one defines“too bright”or“too dark”to be a factor of 5 from the current pixel being analyzed, then neighbors whose values arenot within the range can be ignored:

Where Ic is the intensity of every pixel and I the intensity of neighboring pixels.

Since such edges in nature have a smoother profile than just an edge, a smoother profile was suggested withthe formula:

We made the contrast threshold (the“how bright is too bright?”parameter) adjustable to test the effects of different values. Below is an example used to test the effect ofthis parameter. For cases where the contrast threshold is less than the contrast ratio between two areas across an edge, the filteredresult is a sharp boundary between the two surfaces. For cases where the threshold parameter is greater than the contrast ratiobetween the surfaces across a sharp boundary, the filtered image produces blurred versions of the boundary. For the image withthreshold level 2, there are obvious“clipping”effects around areas with fairly sharp boundaries, such as the ceiling structures.These effects quickly disappear with increasing threshold values up to 5. Beyond that, there is little difference in the final imagewith respect to the threshold value, which seems to suggest that white is about 5 times the intensity of mid gray while black is 1/5the intensity of mid gray. Another tunable parameter is the radius used in the local averaging. The actual size of the local window isa square with sides of length 2*radius+1. Increasing the radius produced blurrier and more homogenous images, while decreasing itsharpened the image while reducing the effect of the averager. Why is this case? More values are averaged with larger radii and thus amore homogenous mapping is assigned, which makes the mapped pixel closer in intensity to its neighbors.

For mostly continuous surfaces with little change in intensity throughout its range, the adaptive gain controloperator averages out these low contrast areas, which explains the blur in the output images However, this type of blur is undesirablefor most photographic applications, since a significant amount of detail is sacrificed.

Threshold = 2, Radius = 2

Threshold = 5, Radius = 2

Threshold = 10000, Radius = 2

Threshold = 5, Radius = 10

Threshold = 5, Radius = 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