ECE 472/572 - Digital Image Processing: Lecture 1 - Introduction
ECE 472/572 - Digital Image Processing: Lecture 1 - Introduction
Processing
Lecture 1 - Introduction
08/18/11
1
What is an image? - The bitmap
representation
Also called “raster or pixel maps”
representation
An image is broken up into a grid
y
Gray level
x
pixel
Original picture Digital image
f(x, y) I[i, j] or I[x, y] 2
What is an image? - The vector
representation
Object-oriented representation
Does not show information of individual
pixel, but information of an object (circle,
line, square, etc.)
Circle(100, 20, 20)
Line(xa1, ya1, xa2, ya2)
Line(xb1, yb1, xb2, yb2)
Line(xc1, yc1, xc2, yc2)
Line(xd1, yd1, xd2, yd2)
3
Comparison
Bitmap Vector
– Can represent images with – Can only represent simple
complex variations in line drawings (CAD),
colors, shades, shapes. shapes, shadings, etc.
– Larger image size – Efficient
– Fixed resolution – Flexible
– Easier to implement – Difficult to implement
4
How did it start?
Early 1960s
NASA’s Jet Propulsion Laboratory (JPL)
Process video images from spacecraft (Ranger)
IBM 360 Computer
5
Images from H. Andrews and B. Hunt, Digital Image Restoration, Prentice-Hall, 1977.
Why image processing?
Application
– Fingerprint retrieval
– Automatic target recognition
– Industrial inspection
– Medical imaging
– and more …
Can commercial software do all the work?
6
Original image of
Histogram Equalization Photoshop “Auto Contrast”
Mars and its moon Photoshop
APDG = 42.1 TEN = 12.1 APDG = 28.4 TEN = 22.0 result APDG = 72.9 TEN = 20.8
GLG in RGB space GLG in HSI space – better than Photoshop result
GLG-RGB
APDG = 76.3 TEN = 27.0 GLG-HSI
APDG = 78.6 TEN = 26.6
7
From Zhiyu Chen’s preliminary proposal defense, January 2009
Some clarification
Image improvement
– Improving the visual appearance of images to
a human viewer
Image analysis
– Preparing images for measurement of the
features and structures present
9
What to learn?
Preprocessing – low level High-level IP
Image Improvement Image Analysis
10
Knowledge Base
Image acquisition
Video camera
Infrared camera
Range camera
Line-scan camera
Hyperspectral camera
Omni-directional camera
and more …
11
Some simple operations
12
Image enhancement
13
Movie film restoration
14
Image restoration
15
Image correction
Geometric correction
Radiometric correction
16
Image warping – geometric
transformation
Image warping – another
example
18
From Joey Howell and Cory McKay, ECE472, Fall 2000
Image segmentation
19
Image description
20
Beyond
21
Image processing for fine arts
22
Real-world reasoning demo
23
How to address pixels of an
image?
int i, j, k;
int nr, // number of rows
nc, // number of columns
nchan;// number of channels
Neighbors of a pixel
j (column)
(i-1, j-1) (i-1, j) (i-1, j+1)
(i, j-1) (i, j) (i, j+1)
i
(i+1, j-1) (i+1, j) (i+1, j+1)
(row)
4-neighborhood 8-neighborhood 25
Closedness ambiguity
26
The Image library
if (argc < 3) {
cout << Usage;
exit(3);
}
writeImage(img2, argv[2]);
28
return 0;
The course website
http://web.eecs.utk.edu/~qi/ece472-572
Course information
Official language: C++
Pre-homework assignment
– Subscribe to mailing list,
[email protected]
Grading policy: 72 late hour rule
29
What to do?
30