Beruflich Dokumente
Kultur Dokumente
Introduction
Image Enhancement ?
• enhance otherwise hidden information
• Filter important image features
• Discard unimportant image features
Spatial Domain ?
• Refers to the image plane (the ‘natural’
image)
• Direct image manipulation
Remember ?
v = f(x,y)
Remember ?
T(f(x,y)) = f(x,y) / 2
T
f(x,y) g(x,y)
Spatial Domain
6 8 2 0 3 4 1 0
12 200 20 10 6 100 10 5
(Operator: Div. by 2)
Spatial Domain
6 8 2 0 226
12 200 20 10
Spatial Domain
6 8 2 0
12 200 20 10
(Operator: sum) 11 13 3 0
14 220 23 14
5 5 1 0
2 20 3 4
Spatial Domain
• Image Negatives
• Log Transformations
• Power Law Transformations
• Piecewise-Linear Transformation
Functions
For the following slides L denotes the max. possible gray value of the
image, i.e. f(x,y) [0,L]
Transformations
T(f)=L-f
Output gray level
Log Transformations:
T(f) = c * log (1+ f)
Transformations
Log Transformations
InvLog Log
Transformations
Log Transformations
Transformations
Thresholding Function
Two approaches:
Bitplane Slicing
BP 0
BP 5
BP 7
Piecewise Linear Transformations
Exercise:
Histogram Processing
1 4 5 0
3 1 5 1
Number of Pixels
gray level
Histograms
Histogram Equalization:
• Preprocessing technique to
enhance contrast in ‘natural’
images
• Target: find gray level
transformation function T to
transform image f such that the
histogram of T(f) is ‘equalized’
Histogram Equalization
Equalized Histogram:
Example:
Target:
Find a transformation T to transform the
grayvalues g1[0..1] of an image I to
grayvalues g2 = T(g1) such that the
histogram is equalized, i.e. there’s an equal
amount of pixels for each grayvalue.
Discrete:
Conclusion:
6 8 2 0
12 200 20 10
(Operator: sum) 11 13 3 0
14 220 23 14
5 5 1 0
2 20 3 4
Operations on a set of images
AND
OR
NOT
Operations on a set of images
A B Op
0 0 1 Op=
NOT(A) AND NOT(B)
0 1 1
OR
1 0 0
NOT(A) AND B
1 1 0
Operations on a set of images
1 2 3 9
7 3 6 4
(Operator: AND) 1 0 1 1
2 2 2 0
1 1 1 1
2 2 2 2
SOLUTION
7 0111
AND
2 0010
0010 2
9 1011
AND
1 0001
0001 1
Operations on a set of images
255 3 7 255
Operations
1 2 3 9
7 3 6 4
(Operator: +) 2 3 4 10
9 5 8 6
1 1 1 1
2 2 2 2
Operations
Exercise:
(MATLAB)
Example: Operator +
Image Averaging