<< Chapter < Page Chapter >> Page >

To lessen the blurring effect on the adaptive gain control operator, we modified Pattanaik’s algorithm so that edges can be detected. In the case where a neighbor pixel is“too different”in intensity from the pixel being mapped, a counter is incremented and counts the maximum number of pixels that can be“too different”before the inspected pixel is not mapped at all using the averaged obtained from its neighbors. In this case, theold luminance value is simply assigned to this pixel, which is mapped down to a lower color depth linearly by dividing by thebrightest value in the image. In the following examples, the“max difference”parameter refers to the maximum contrast ratio between a neighboring pixel and the pixel being mapped, above which acounter is incremented. The“number different”parameter refers to the maximum value of said counter, above which the local averagecan be ignored when mapping a pixel. As expected, increasing the“max difference”parameter increases the threshold at which edges are preserved, thereby producing a blurrier image. A small valuefor“max difference”keeps finer details intact as slighter changes would prompt the mapping algorithm to ignore local values.Increasing the“number different”parameter has a similar effect as increasing the“max difference”parameter; as more values must reach the threshold before the local average is ignored, the localaverage is used more often to map image pixels, causing the image to become more homogenous. Blurring the image by increasing the“number different”parameter, however, seems to keep the details in harsher edges more intact compared to blurring with the“max difference”parameter. This should make sense (pixels at the edge of a harsh transition encounter a greater number of neighboringpixels with very different luminance values).

Threshold = 5, Radius = 2, Max Difference = 1.1, Number Different = 1

Threshold = 5, Radius = 2, Max Difference = 1.35, Number Different = 1

Threshold = 5, Radius = 2, Max Difference = 1.75, Number Different = 1

Threshold = 5, Radius = 2, Max Difference = 1.1, Number Different = 3

Threshold = 5, Radius = 2, Max Difference = 1.1, Number Different = 10

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