Computer Assisted Image Analysis Lecture 2 - Point Processing
Computer Assisted Image Analysis Lecture 2 - Point Processing
Digital images
• Images denoted by functions, e.g. f (x, y) or g(x, y)
• Sampling in space, e.g. (x, y) 2 I and ||I|| = N , where I is a
discrete set of pixel positions.
• Quantization in amplitude (intensity),
f (x, y) 2 {0, 1, . . . (L 1)}
Image Processing 4/41
In image processing, the operator T transforms the input image
into an output image, g(x, y) = T (f (x, y)).
Pixel-wise transform
• Change the gray level for each individual pixel.
• Compare to television: Brightness and contrast
• brightness: addition
• contrast: multiplication
Subtract. Add.
Image Processing 10/41
Contrast
Multiply
Gray Level Transformations 11/41
Some basic gray level transformation functions used for image
enhancement.
Gray Level Transformations 12/41
Gray Level Transformations 13/41
Negative or positive
dr
ps = pr (r)| |
ds
1
= pr (r)
Lpr (r)
= 1/L
Histogram Equalization 18/41
Original image.
Intensity 0 1 2 3 4 5 6 7
Number of pixels 10 20 12 8 0 0 0 0
T (0) = 7 ⇤ (p(0)) ⇡ 1
T (1) = 7 ⇤ (p(0) + p(1)) ⇡ 4
T (2) = 7 ⇤ (p(0) + p(1) + p(2)) ⇡ 6
T (3) = 7 ⇤ (p(0) + p(1) + p(2) + p(3)) = 7
T (r) = 7, r = 4, 5, 6, 7
Intensity 0 1 2 3 4 5 6 7
Number of pixels 0 10 0 0 20 0 12 8
Histogram Equalization 21/41
Example: Original image f (x, y)
Histogram Equalization 22/41
Example: Histogram
Histogram Equalization 23/41
Example: Normalized histogram
Histogram Equalization 24/41
Example: Cumulative histogram
Histogram Equalization 25/41
Example: Normalized cumulative histogram
Histogram Equalization 26/41
Example: Histogram equalization transform
Histogram Equalization 27/41
Example: Histogram equalization
Histogram Equalization 28/41
Example: Equalized histograms
Histogram Equalization 29/41
• Information from two di↵erent images with the same size can
be combined by adding, subtracting, multiplying or comparing
the pixel values, pixel by pixel. Rounding to fit [0, L 1].
• For enhancement, segmentation, change detection.
Arithmetic/Logical Operations 34/41
Image 1. Image 2.
Arithmetic/Logical Operations 35/41
Enhancement by image subtraction
• An operator H is linear if
• H[ai f i(x, y) + aj fj (x, y)] = ai H[fi (x, y)] + aj H[fj (x, y)]]
• Linear operators have properties that make them useful in
image analysis, in particular for image filtering
• The class of non-linear operators is huge
• Example: sin is non-linear (“The Freshman´s dream”)
• sin(fi (x, y)) + sin(fj (x, y)) 6= sin(fi (x, y) + fj (x, y))
Review Questions 40/41