Title: ASAM Image Processing 20082009
1ASAM - Image Processing2008/2009
- Lecture 2
- Intensity Transformation Functions
Ioannis Ivrissimtzis 23-Oct-2008
2Overview
Intensity transformation functions Gamma
correction Contrast increasing functions
3Intensity transformation functions
- An intensity transformation function is a
function f applied to the - intensity of each pixel
f
Notice that here each pixel is processed by f
individually.
4Intensity transformation functions
f
5Intensity transformation functions
f
6Intensity transformation functions
f
7Intensity transformation functions
f
8Intensity transformation functions
- Exercise 2.1 Draw the graphs of the intensity
transformation functions - in examples 2.1 - 2.4.
9Overview
Intensity transformation functions Gamma
correction Contrast increasing functions
10Gamma correction
- The gamma correction is an intensity
transformation function - where ? is a constant.
11Gamma correction
- The graph of the gamma correction for ? lt 1
f(x)
1
x
1
0
12Gamma correction
- The graph of the gamma correction for ? 1
f(x)
1
x
1
0
13Gamma correction
- The graph of the gamma correction for ? gt 1
f(x)
1
x
1
0
14Gamma correction
- If ? lt 1 the image is weighted toward higher
(brighter) output values. - If ? gt 1 the image is weighted toward lower
(darker) output values. - If ? 1 the transformation has no effect on the
image.
15Gamma correction
f
16Gamma correction
f
17Gamma correction
- The gamma correction is used to correct the
tonality of an image. - An underexposed photograph can be corrected using
gamma correction with ? lt 1. - An overexposed photograph can be corrected using
gamma correction - with ? gt 1.
18Gamma correction
? 1/2
? 1/3
? 1/4
? 1
19Gamma correction
? 2
? 3
? 4
? 1
20Overview
Intensity transformation functions Gamma
correction Contrast increasing functions
21Contrast-stretching transformations
- The contrast stretching function
- where E is a relatively large constant (e.g. E gt
2), increases the - contrast of the image.
- Pixel values below 0.5 are pushed nearer to 0.
- Pixel values above 0.5 are pushed nearer to 1.
22Contrast-stretching transformations
- The graph of the contrast stretching function for
E 5
23Contrast-stretching transformations
f
24Contrast-stretching transformations
- The graph of the contrast stretching function for
E 100
25Contrast-stretching transformations
f
26Contrast-stretching transformations
- Example 2.10 The higher the values of E the
greater the increase of - the contrast.
E 50
Original
E 2
E 10