Chapter 1
Chapter 1
Chapter 1
Type of Images
Gray scale images
Type of Images
Colored images
• three values per pixel and they
measure intensity and chrominance
of light
Type of Images
Computer generated images
Type of Images
Natural Images
Type of Images
Cartoon like images
Type of Images
Examples of X-ray
images
Type of Images
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall
Examples of UV images of healthy and
diseased corn
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall Type of Images
Examples of microscopy
images
Type of Images
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall Type of Images
Photography using ultrasound
Type of Images
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall
Steps in image formation and processing
1. Energy source
2. Intervening medium
3. Reflection or refraction through the object
4. Interveneing medium
5. Optics or other focusing mechanism
6. Sensing mechanism
7. A/D conversion
8. Compression (IP software)
9. Storage
10. Decompression (IP Software)
11. Other image processing software
Most used images
Images that need processing
Structure of the human eye
19
Webber’s Ratio:
20
21
22
Image Sampling and Quantization
23
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall
Sampling and quantization
24
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall
Sampling and quantization
25
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall
Surfaces and contours of intensity
28
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall
Effect of intensity
levels
29
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall
Effect of spatial resolution
Effects of
reducing spatial
resolution. The
images shown
are at:
(a) 930 dpi,
(b) 300 dpi,
(c) 150 dpi, and
(d) 72 dpi.
30
Source: Digital Image Processing, Gonzalez and Woods, Prentice Hall
Basic Relationships Between Pixels
Neighbors of a Pixel :- Any pixel p(x, y) has two vertical and two horizontal neighbors, given by
1. This set of pixels are called the 4-neighbors of P and is denoted by N 4(P).
The points ND(P) and N4(P) are together known as 8-neighbors of the point P, denoted by N8(P)
Some of the points in the N4, ND and N8 may fall outside image when P lies on the border of
image.
(x-1, y+1) (x+1, y-1)
P (x,y)
(x-1, y-1) (x+1, y+1)
Basic Relationships Between Pixels
Adjacency
1. Two pixels are connected if they are neighbors and their gray levels satisfy some specified criterion of
similarity.
2. For example, in a binary image two pixels are connected if they are 4-neighbors and have same value
(0/1).
3. 4-adjacency: Two pixels p and q with values from V are 4-adjacent if q is in the set N4(p).
4. 8-adjacency: Two pixels p and q with values from V are 8- adjacent if q is in the set N8(p).
5. m-adjacency: Two pixels p and q with values from V are m-adjacent if,
1. q is in N4(P).
as:
D (p,q) = max(| x – s |,| y – t |)
8
Distance Measures
• Dm distance:
is defined as the shortest m-path between the points.
In this case, the distance between two pixels will
depend on the values of the pixels along the path, as
well as the values of their neighbors.
Basics of intensity transforms
• Definition: a function that maps an input pixel
intensity to an output pixel intensity
• Purpose:
– Improve the (subjective) visual quality of an image
– Sometimes, it also helps downstream algorithms
41
Contrast stretching vs. thresholding
42
Highlighting a range of
intensities
43
Negative of an image
S=L- r − 1
44
EX: Obtain the digital negative of the following 8 - bit sub image.
UQP: (May 17) 10 Marks
Some basic intensity
transformations
47
Log transformation in log domain
• s = c log (1+r)
48
Power-law (gamma transformation)
• s = c rγ
49
Gamma
1, .6, .4, .3
51
Gamma 1, 3, 4,
5
52
Some results of intensity highlighting
53
Bit-plane slicing
DIY
• Complete the table
MxN Bpp No of gray Storage size (bits)
levels
200 x 200 2
200 x 200 4
1064 x 1064 1
100 x 100 64
50 x 50 10
Bpp 4 5 6 7 8 9 10 11 12
N 3 6 1 3 6 1 3 6 1 3 6 1 3 6 1 3 6 1 3 6 1 3 6 1 3 6 1
2 4 2 2 4 2 2 4 2 2 4 2 2 4 2 2 4 2 2 4 2 2 4 2 2 4 2
8 8 8 8 8 8 8 8 8
Quality B B GB B GB B G B B G B G G B G G B G G B G G G G G
Rating