<< Chapter < Page Chapter >> Page >
Nonlinear behavior of a display device having a γ of 2.2.

In order to achieve the correct reproduction of intensity, this nonlinearity must be compensated by a process known as γ correction . Images that are not properly corrected usually appear too light or too dark.If the value of γ is available, then the correction process consists of applying the inverse of [link] . This is a straightforward pixel transformation,as we discussed in the section "Pointwise Transformations" .

Write a Matlab function that will γ correct an image by applying the inverse of [link] . The syntax should be

B = gammCorr(A,gamma)

where A is the uncorrected image, g a m m a is the γ of the device, and B is the corrected image. (See the hints in "Pointwise Transformations" .)

The file dark.tif is an image that has not been γ corrected for your monitor. Download this image, and read it into Matlab.Display it and observe the quality of the image.

Assume that the γ for your monitor is 2.2. Use your gammCorr function to correct the image for your monitor, and display theresultant image. Did it improve the quality of the picture?

Inlab report

  1. Hand in your code for gammCorr .
  2. Hand in the γ corrected image.
  3. How did the correction affect the image? Does this appear to be the correct value for γ ?

Image enhancement based on filtering

Sometimes, we need to process images to improve their appearance. In this section, we will discuss two fundamental image enhancementtechniques: image smoothing and sharpening .

Image smoothing

Smoothing operations are used primarily for diminishing spurious effects that may be presentin a digital image, possibly as a result of a poor sampling system or a noisy transmission channel. Lowpass filtering is a populartechnique of image smoothing.

Some filters can be represented as a 2-D convolution of an image f ( i , j ) with the filter's impulse response h ( i , j ) .

g ( i , j ) = f ( i , j ) * * h ( i , j ) = k = - l = - f ( k , l ) h ( i - k , j - l )

Some typical lowpass filter impulse responses are shown in [link] , where the center element corresponds to h ( 0 , 0 ) . Notice that the terms of each filter sum to one.This prevents amplification of the DC component of the original image.The frequency response of each of these filters is shown in [link] .

Impulse responses of lowpass filters useful for image smoothing.
Frequency responses of the lowpass filters shown in Fig. 5.

An example of image smoothing is shown in [link] , where the degraded image is processed by the filter shown in [link] . It can be seen thatlowpass filtering clearly reduces the additive noise, but at the same time it blurs the image. Hence, blurring is a major limitation of lowpass filtering.

(1) Original gray scale image. (2) Original image degraded by additive white Gaussian noise, N ( 0 , 0 . 01 ) . (3) Result of processing the degraded image with a lowpass filter.

In addition to the above linear filtering techniques, images can be smoothed by nonlinear filtering, such as mathematical morphological processing. Median filtering is one of the simplest morphological techniques, and is useful in the reduction of impulsive noise.The main advantage of this type of filter is that it can reduce noise while preserving the detail of the original image.In a median filter, each input pixel is replaced by the median of the pixels contained in a surrounding window. This can be expressed by

Questions & Answers

write 150 organic compounds and name it and draw the structure
Joseph Reply
write 200 organic compounds and name it and draw the structure
Joseph
name 150 organic compounds and draw the structure
Joseph
organic chemistry is a science or social science discuss it's important to our country development
Musa Reply
what is chemistry
Terhemba Reply
what is the difference between ph and poh?
Abagaro Reply
chemical bond that results from the attractive force between shared electrons and nonmetals nucleus is what?
Abagaro
what is chemistry
Ayok
what is chemistry
ISIYAKA Reply
what is oxidation
Chidiebube Reply
calculate molarity of NaOH solution when 25.0ml of NaOH titrated with 27.2ml of 0.2m H2SO4
Gasin Reply
what's Thermochemistry
rhoda Reply
the study of the heat energy which is associated with chemical reactions
Kaddija
How was CH4 and o2 was able to produce (Co2)and (H2o
Edafe Reply
explain please
Victory
First twenty elements with their valences
Martine Reply
first twenty element with their valence
Victoria
what is chemistry
asue Reply
what is atom
asue
what is atom
Victoria
what is the best way to define periodic table for jamb
Damilola Reply
what is the change of matter from one state to another
Elijah Reply
what is isolation of organic compounds
IKyernum Reply
what is atomic radius
ThankGod Reply
Read Chapter 6, section 5
Dr
Read Chapter 6, section 5
Kareem
Atomic radius is the radius of the atom and is also called the orbital radius
Kareem
atomic radius is the distance between the nucleus of an atom and its valence shell
Amos
Read Chapter 6, section 5
paulino
what channel
Victoria Reply
what is chemistry
Victoria
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Purdue digital signal processing labs (ece 438). OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10593/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Purdue digital signal processing labs (ece 438)' conversation and receive update notifications?

Ask