SlideShare a Scribd company logo
1 of 48
Digital Image Processing
Chapter 2:
Digital Image Fundamental
Digital Image
Digital image = a multidimensional
array of numbers (such as intensity image)
or vectors (such as color image)
Each component in the image
called pixel associates with
the pixel value (a single number in
the case of intensity images or a
vector in the case of color images).












39
87
15
32
22
13
25
15
37
26
6
9
28
16
10
10












39
65
65
54
42
47
54
21
67
96
54
32
43
56
70
65












99
87
65
32
92
43
85
85
67
96
90
60
78
56
70
99
Visual Perception: Human Eye
(Picture from Microsoft Encarta 2000)
Cross Section of the Human Eye
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
1. The lens contains 60-70% water, 6% of fat.
2. The iris diaphragm controls amount of light that enters the eye.
3. Light receptors in the retina
- About 6-7 millions cones for bright light vision called photopic
- Density of cones is about 150,000 elements/mm2.
- Cones involve in color vision.
- Cones are concentrated in fovea about 1.5x1.5 mm2.
- About 75-150 millions rods for dim light vision called scotopic
- Rods are sensitive to low level of light and are not involved
color vision.
4. Blind spot is the region of emergence of the optic nerve from the eye.
Visual Perception: Human Eye (cont.)
Distribution of Rods and Cones in the Retina
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Image Formation in the Human Eye
(Picture from Microsoft Encarta 2000)
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Brightness Adaptation of Human Eye
Digital Images are displayed as a discrete set of intensities, the eye’s ability to
discriminate between different intensity levels is important consideration.
The subjective brightness is a logarithmic function of the light intensity
incident on the eye.
Position
Intensity
Brightness Adaptation of Human Eye : Mach Band Effect
Mach Band Effect
Intensities of surrounding points
effect perceived brightness at each
point.
In this image, edges between bars
appear brighter on the right side
and darker on the left side.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
In area A, brightness perceived is darker while in area B is
brighter. This phenomenon is called Mach Band Effect.
Position
Intensity
A
B
Mach Band Effect (Cont)
Simultaneous contrast. All small squares have exactly the same intensity
but they appear progressively darker as background becomes lighter.
Brightness Adaptation of Human Eye : Simultaneous Contrast
Simultaneous Contrast
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Optical illusion
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Visible Spectrum
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Continue……
• The electromagnetic spectrum can be expressed in terms of wavelength and Frequency
or Energy
• Electromagnetic waves can be visualized as propagating sinusoidal waves with
wavelength λ.
• It is considered as a massless particles, each travelling in a wave like pattern and
moving at the speed of light. Each bundle of energy is called a photon.
• Light that is void of color is called achromatic or monochromatic light. The only
attribute of such light is intensity. The term gray level is generally describe
monochromatic intensity.
• Three basic quantities are used to describe the quality of chromatic light source:
Radiance, Luminance and brightness.
• Radiance is the total amount of energy that flows from light source. Measured in watts.
Luminance is measure of amount of energy an observer perceives from a light source.
Measured in lumens(lm). Brightness is a subjective descriptor of light perception that is
impossible to measure. It embodies achromatic notation of intensity and one of the key
factor to describe color sensation.
• Gamma radiation is important for Medical and Astronomical imaging. X-rays are used
in industrial applications.
Image Sensors
Single sensor
Line sensor
Array sensor
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Image Sensors : Single Sensor
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Image Sensors : Line Sensor
Fingerprint sweep sensor
Computerized Axial Tomography
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Digital Image Acquisition Process
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Digital Image Types : Intensity Image
Intensity image or monochrome image
each pixel corresponds to light intensity
normally represented in gray scale (gray
level).












39
87
15
32
22
13
25
15
37
26
6
9
28
16
10
10
Gray scale values












39
87
15
32
22
13
25
15
37
26
6
9
28
16
10
10












39
65
65
54
42
47
54
21
67
96
54
32
43
56
70
65












99
87
65
32
92
43
85
85
67
96
90
60
78
56
70
99
Digital Image Types : RGB Image
Color image or RGB image:
each pixel contains a vector
representing red, green and
blue components.
RGB components
Image Types : Binary Image
Binary image or black and white image
Each pixel contains one bit :
1 represent white
0 represents black












1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
Binary data
Image Types : Index Image
Index image
Each pixel contains index number
pointing to a color in a color table










2
5
6
7
4
6
9
4
1
Index value
Index
No.
Red
component
Green
component
Blue
component
1 0.1 0.5 0.3
2 1.0 0.0 0.0
3 0.0 1.0 0.0
4 0.5 0.5 0.5
5 0.2 0.8 0.9
… … … …
Color Table
Generating a Digital Image: Image Sampling and Quntization
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Image Sampling and Quantization
Image sampling: discretize an image in the spatial domain
Spatial resolution / image resolution: pixel size or number of pixels
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Digital Image Representation
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Spatial and Gray level resolution
Spatial resolution is the smallest discernible detail in an
image
Gray level resolution similarly refers to the smallest
discernible change in gray level.
Effect of Spatial Resolution
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Effect of Spatial Resolution
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Effect of Spatial Resolution
256x256 pixels
64x64 pixels
128x128 pixels
32x32 pixels
Effect of Quantization Levels
256 levels 128 levels
32 levels
64 levels
Effect of Quantization Levels (cont.)
16 levels 8 levels
2 levels
4 levels
In this image,
it is easy to see
false contour.
How to select the suitable size and pixel depth of images
Low detail image Medium detail image High detail image
Lena image Cameraman image
To satisfy human mind
1. For images of the same size, the low detail image may need more pixel depth.
2. As an image size increase, fewer gray levels may be needed.
The word “suitable” is subjective: depending on “subject”.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Zooming and Shrinking Digital Image
 Zooming is viewed as Oversampling and shrinking is viewed as under sampling. Zooming process requires two
steps : the creation of a new pixel locations and assignment of new gray levels to those locations
Moire Pattern Effect : Special Case of Sampling
Moire patterns occur when frequencies of two superimposed
periodic patterns are close to each other.
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Basic Relationship of Pixels
x
y
(0,0)
Conventional indexing method
(x,y) (x+1,y)
(x-1,y)
(x,y-1)
(x,y+1)
(x+1,y-1)
(x-1,y-1)
(x-1,y+1) (x+1,y+1)
Neighbors of a Pixel
p (x+1,y)
(x-1,y)
(x,y-1)
(x,y+1)
4-neighbors of p:
N4(p) =
(x-1,y)
(x+1,y)
(x,y-1)
(x,y+1)
Neighborhood relation is used to tell adjacent pixels. It is
useful for analyzing regions.
Note: q N4(p) implies p N4(q)
4-neighborhood relation considers only vertical and
horizontal neighbors.
p (x+1,y)
(x-1,y)
(x,y-1)
(x,y+1)
(x+1,y-1)
(x-1,y-1)
(x-1,y+1) (x+1,y+1)
Neighbors of a Pixel (cont.)
8-neighbors of p:
(x-1,y-1)
(x,y-1)
(x+1,y-1)
(x-1,y)
(x+1,y)
(x-1,y+1)
(x,y+1)
(x+1,y+1)
N8(p) =
8-neighborhood relation considers all neighbor pixels.
p
(x+1,y-1)
(x-1,y-1)
(x-1,y+1) (x+1,y+1)
Diagonal neighbors of p:
ND(p)=
(x-1,y-1)
(x+1,y-1)
(x-1,y+1)
(x+1,y+1)
Neighbors of a Pixel (cont.)
Diagonal -neighborhood relation considers only diagonal
neighbor pixels.
Connectivity
If two pixels are connected, it must be determined if they are
neighbors and if their gray level satisfy a specified criterion of
similarity(if their gray level are equal).
A pixel p is adjacent to pixel q if they are connected.
For p and q from the same class
w 4-adjacency: Two pixels p and q with values from V are 4-
adjacent if q is in the set N4(p), q N4(p).
w 8-adjacency: Two pixels p and q with values from V are 8-
adjacent if q is in the set N8(p), q N8(p)
w mixed-adjacency(m-adjacency): Two pixels p and q values
from V are m-adjacent if,
(i)q is in N4(p), q N4(p) or
(ii) q is in ND(p) and the set N4(p) N4(q) has no pixel whose
values are from V, q ND(p) and N4(p) N4(q) = 
Adjacency
A pixel p is adjacent to pixel q if they are connected.
Two image subsets S1 and S2 are adjacent if some pixel
in S1 is adjacent to some pixel in S2
S1
S2
We can define type of adjacency: 4-adjacency, 8-adjacency
or m-adjacency depending on type of connectivity.
Path
A path from pixel p with coordinates (x,y) to pixel q with
coordinates (s,t) is a sequence of distinct pixels:
(x0,y0), (x1,y1), (x2,y2),…, (xn,yn)
where
(x0,y0) = (x,y) and (xn,yn) = (s,t)
and
(xi,yi) is adjacent to (xi-1,yi-1) for 1 <= i <= n
p
q
We can define type of path: 4-path, 8-path or m-path
depending on type of adjacency.
Path (cont.)
p
q
p
q
p
q
8-path from p to q
results in some ambiguity
m-path from p to q
solves this ambiguity
8-path m-path
Region and Boundary
Let S represent a subset of pixel in an image. Two pixels
p and q are said to be connected in S if there exists a path
between them consisting entirely of pixel in S. For any
pixel p in S the set of pixels that are connected to it in S is
called connected component of S. If it only has one
connected component, then set S is called a connected
set.
Let R be the subset of pixel in an image. If R is a
connected set then it is called a Region of image.
The boundary of a region R is the set of pixels in the
region that have one or more neighbors that are not in R.
Distance
For pixel p, q, and z with coordinates (x,y), (s,t) and (u,v),
D is a distance function or metric if
w D(p,q) 0 (D(p,q) = 0 if and only if p = q)
w D(p,q) = D(q,p)
w D(p,z) D(p,q) + D(q,z)
Example: Euclidean distance
2
2
)
(
)
(
)
,
( t
y
s
x
q
p
De -
+
-

The pixels having a distance less than or equal to
some value r from (x,y) are the points contained in a
disk of radius r centered at (x,y)
Distance (cont.)
D4-distance (city-block distance) is defined as
t
y
s
x
q
p
D -
+
-

)
,
(
4
1 2
1
0
1 2
1
2
2
2
2
2
2
Pixels with D4(p) = 1 is 4-neighbors of p.
Distance
The pixels having a D4 distance from (x,y) less than or equal
To some value r from a diamond centered at (x,y).
Distance (cont.)
D8-distance (chessboard distance) is defined as
)
,
max(
)
,
(
8 t
y
s
x
q
p
D -
-

1
2
1
0
1
2
1
2
2
2
2
2
2
Pixels with D8(p) = 1 is 8-neighbors of p.
2
2
2
2
2
2
2
2
1
1
1
1
The pixels having a D8 distance from (x,y) less than or equal
To some value r from a square centered at (x,y).

More Related Content

Similar to Chapter02.ppt

Chapter 3. Intensity Transformations and Spatial Filtering.pdf
Chapter 3. Intensity Transformations and Spatial Filtering.pdfChapter 3. Intensity Transformations and Spatial Filtering.pdf
Chapter 3. Intensity Transformations and Spatial Filtering.pdf
DngThanh44
 
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
MonikaSharma151258
 

Similar to Chapter02.ppt (20)

It 603
It 603It 603
It 603
 
It 603
It 603It 603
It 603
 
It 603
It 603It 603
It 603
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Lect 02 second portion
Lect 02  second portionLect 02  second portion
Lect 02 second portion
 
Basics of image processing & analysis
Basics of image processing & analysisBasics of image processing & analysis
Basics of image processing & analysis
 
Chapter1.ppt
Chapter1.pptChapter1.ppt
Chapter1.ppt
 
[IJET-V1I6P10] Authors: Mr.B.V.Sathish Kumar, M.Tech Scholar G.Sumalatha
[IJET-V1I6P10] Authors: Mr.B.V.Sathish Kumar, M.Tech Scholar G.Sumalatha [IJET-V1I6P10] Authors: Mr.B.V.Sathish Kumar, M.Tech Scholar G.Sumalatha
[IJET-V1I6P10] Authors: Mr.B.V.Sathish Kumar, M.Tech Scholar G.Sumalatha
 
Chapter01 Lecture 1.ppt
Chapter01 Lecture 1.pptChapter01 Lecture 1.ppt
Chapter01 Lecture 1.ppt
 
Chapter01 lecture 1
Chapter01 lecture 1Chapter01 lecture 1
Chapter01 lecture 1
 
Chapter 3. Intensity Transformations and Spatial Filtering.pdf
Chapter 3. Intensity Transformations and Spatial Filtering.pdfChapter 3. Intensity Transformations and Spatial Filtering.pdf
Chapter 3. Intensity Transformations and Spatial Filtering.pdf
 
Introduction to digital image processing
Introduction to digital image processingIntroduction to digital image processing
Introduction to digital image processing
 
mini prjt
mini prjtmini prjt
mini prjt
 
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
Unit-1Chapter-1Lecture-2.pptxkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
 
Chapter 2. Digital Image Fundamentals.pdf
Chapter 2. Digital Image Fundamentals.pdfChapter 2. Digital Image Fundamentals.pdf
Chapter 2. Digital Image Fundamentals.pdf
 
Recent advances digital imaging
Recent advances digital imaging Recent advances digital imaging
Recent advances digital imaging
 
Digital imaging (2)
Digital imaging (2)Digital imaging (2)
Digital imaging (2)
 
Digital imaging in dentistry / orthodontics courses
Digital imaging in dentistry / orthodontics courses Digital imaging in dentistry / orthodontics courses
Digital imaging in dentistry / orthodontics courses
 
Digital imaging
Digital imagingDigital imaging
Digital imaging
 

Recently uploaded

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 

Recently uploaded (20)

AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 

Chapter02.ppt

  • 1. Digital Image Processing Chapter 2: Digital Image Fundamental
  • 2. Digital Image Digital image = a multidimensional array of numbers (such as intensity image) or vectors (such as color image) Each component in the image called pixel associates with the pixel value (a single number in the case of intensity images or a vector in the case of color images).             39 87 15 32 22 13 25 15 37 26 6 9 28 16 10 10             39 65 65 54 42 47 54 21 67 96 54 32 43 56 70 65             99 87 65 32 92 43 85 85 67 96 90 60 78 56 70 99
  • 3. Visual Perception: Human Eye (Picture from Microsoft Encarta 2000)
  • 4. Cross Section of the Human Eye (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 5. 1. The lens contains 60-70% water, 6% of fat. 2. The iris diaphragm controls amount of light that enters the eye. 3. Light receptors in the retina - About 6-7 millions cones for bright light vision called photopic - Density of cones is about 150,000 elements/mm2. - Cones involve in color vision. - Cones are concentrated in fovea about 1.5x1.5 mm2. - About 75-150 millions rods for dim light vision called scotopic - Rods are sensitive to low level of light and are not involved color vision. 4. Blind spot is the region of emergence of the optic nerve from the eye. Visual Perception: Human Eye (cont.)
  • 6. Distribution of Rods and Cones in the Retina (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 7. Image Formation in the Human Eye (Picture from Microsoft Encarta 2000) (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 8. Brightness Adaptation of Human Eye Digital Images are displayed as a discrete set of intensities, the eye’s ability to discriminate between different intensity levels is important consideration. The subjective brightness is a logarithmic function of the light intensity incident on the eye.
  • 9. Position Intensity Brightness Adaptation of Human Eye : Mach Band Effect
  • 10. Mach Band Effect Intensities of surrounding points effect perceived brightness at each point. In this image, edges between bars appear brighter on the right side and darker on the left side. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 11. In area A, brightness perceived is darker while in area B is brighter. This phenomenon is called Mach Band Effect. Position Intensity A B Mach Band Effect (Cont)
  • 12. Simultaneous contrast. All small squares have exactly the same intensity but they appear progressively darker as background becomes lighter. Brightness Adaptation of Human Eye : Simultaneous Contrast
  • 13. Simultaneous Contrast (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 14. Optical illusion (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 15. Visible Spectrum (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 16. Continue…… • The electromagnetic spectrum can be expressed in terms of wavelength and Frequency or Energy • Electromagnetic waves can be visualized as propagating sinusoidal waves with wavelength λ. • It is considered as a massless particles, each travelling in a wave like pattern and moving at the speed of light. Each bundle of energy is called a photon. • Light that is void of color is called achromatic or monochromatic light. The only attribute of such light is intensity. The term gray level is generally describe monochromatic intensity. • Three basic quantities are used to describe the quality of chromatic light source: Radiance, Luminance and brightness. • Radiance is the total amount of energy that flows from light source. Measured in watts. Luminance is measure of amount of energy an observer perceives from a light source. Measured in lumens(lm). Brightness is a subjective descriptor of light perception that is impossible to measure. It embodies achromatic notation of intensity and one of the key factor to describe color sensation. • Gamma radiation is important for Medical and Astronomical imaging. X-rays are used in industrial applications.
  • 17. Image Sensors Single sensor Line sensor Array sensor (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 18. Image Sensors : Single Sensor (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 19. Image Sensors : Line Sensor Fingerprint sweep sensor Computerized Axial Tomography (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 20. Digital Image Acquisition Process (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 21. Digital Image Types : Intensity Image Intensity image or monochrome image each pixel corresponds to light intensity normally represented in gray scale (gray level).             39 87 15 32 22 13 25 15 37 26 6 9 28 16 10 10 Gray scale values
  • 23. Image Types : Binary Image Binary image or black and white image Each pixel contains one bit : 1 represent white 0 represents black             1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 Binary data
  • 24. Image Types : Index Image Index image Each pixel contains index number pointing to a color in a color table           2 5 6 7 4 6 9 4 1 Index value Index No. Red component Green component Blue component 1 0.1 0.5 0.3 2 1.0 0.0 0.0 3 0.0 1.0 0.0 4 0.5 0.5 0.5 5 0.2 0.8 0.9 … … … … Color Table
  • 25. Generating a Digital Image: Image Sampling and Quntization (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 26. Image Sampling and Quantization Image sampling: discretize an image in the spatial domain Spatial resolution / image resolution: pixel size or number of pixels (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 27. Digital Image Representation (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 28. Spatial and Gray level resolution Spatial resolution is the smallest discernible detail in an image Gray level resolution similarly refers to the smallest discernible change in gray level.
  • 29. Effect of Spatial Resolution (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 30. Effect of Spatial Resolution (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 31. Effect of Spatial Resolution 256x256 pixels 64x64 pixels 128x128 pixels 32x32 pixels
  • 32. Effect of Quantization Levels 256 levels 128 levels 32 levels 64 levels
  • 33. Effect of Quantization Levels (cont.) 16 levels 8 levels 2 levels 4 levels In this image, it is easy to see false contour.
  • 34. How to select the suitable size and pixel depth of images Low detail image Medium detail image High detail image Lena image Cameraman image To satisfy human mind 1. For images of the same size, the low detail image may need more pixel depth. 2. As an image size increase, fewer gray levels may be needed. The word “suitable” is subjective: depending on “subject”. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 35. Zooming and Shrinking Digital Image  Zooming is viewed as Oversampling and shrinking is viewed as under sampling. Zooming process requires two steps : the creation of a new pixel locations and assignment of new gray levels to those locations
  • 36. Moire Pattern Effect : Special Case of Sampling Moire patterns occur when frequencies of two superimposed periodic patterns are close to each other. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition.
  • 37. Basic Relationship of Pixels x y (0,0) Conventional indexing method (x,y) (x+1,y) (x-1,y) (x,y-1) (x,y+1) (x+1,y-1) (x-1,y-1) (x-1,y+1) (x+1,y+1)
  • 38. Neighbors of a Pixel p (x+1,y) (x-1,y) (x,y-1) (x,y+1) 4-neighbors of p: N4(p) = (x-1,y) (x+1,y) (x,y-1) (x,y+1) Neighborhood relation is used to tell adjacent pixels. It is useful for analyzing regions. Note: q N4(p) implies p N4(q) 4-neighborhood relation considers only vertical and horizontal neighbors.
  • 39. p (x+1,y) (x-1,y) (x,y-1) (x,y+1) (x+1,y-1) (x-1,y-1) (x-1,y+1) (x+1,y+1) Neighbors of a Pixel (cont.) 8-neighbors of p: (x-1,y-1) (x,y-1) (x+1,y-1) (x-1,y) (x+1,y) (x-1,y+1) (x,y+1) (x+1,y+1) N8(p) = 8-neighborhood relation considers all neighbor pixels.
  • 40. p (x+1,y-1) (x-1,y-1) (x-1,y+1) (x+1,y+1) Diagonal neighbors of p: ND(p)= (x-1,y-1) (x+1,y-1) (x-1,y+1) (x+1,y+1) Neighbors of a Pixel (cont.) Diagonal -neighborhood relation considers only diagonal neighbor pixels.
  • 41. Connectivity If two pixels are connected, it must be determined if they are neighbors and if their gray level satisfy a specified criterion of similarity(if their gray level are equal). A pixel p is adjacent to pixel q if they are connected. For p and q from the same class w 4-adjacency: Two pixels p and q with values from V are 4- adjacent if q is in the set N4(p), q N4(p). w 8-adjacency: Two pixels p and q with values from V are 8- adjacent if q is in the set N8(p), q N8(p) w mixed-adjacency(m-adjacency): Two pixels p and q values from V are m-adjacent if, (i)q is in N4(p), q N4(p) or (ii) q is in ND(p) and the set N4(p) N4(q) has no pixel whose values are from V, q ND(p) and N4(p) N4(q) = 
  • 42. Adjacency A pixel p is adjacent to pixel q if they are connected. Two image subsets S1 and S2 are adjacent if some pixel in S1 is adjacent to some pixel in S2 S1 S2 We can define type of adjacency: 4-adjacency, 8-adjacency or m-adjacency depending on type of connectivity.
  • 43. Path A path from pixel p with coordinates (x,y) to pixel q with coordinates (s,t) is a sequence of distinct pixels: (x0,y0), (x1,y1), (x2,y2),…, (xn,yn) where (x0,y0) = (x,y) and (xn,yn) = (s,t) and (xi,yi) is adjacent to (xi-1,yi-1) for 1 <= i <= n p q We can define type of path: 4-path, 8-path or m-path depending on type of adjacency.
  • 44. Path (cont.) p q p q p q 8-path from p to q results in some ambiguity m-path from p to q solves this ambiguity 8-path m-path
  • 45. Region and Boundary Let S represent a subset of pixel in an image. Two pixels p and q are said to be connected in S if there exists a path between them consisting entirely of pixel in S. For any pixel p in S the set of pixels that are connected to it in S is called connected component of S. If it only has one connected component, then set S is called a connected set. Let R be the subset of pixel in an image. If R is a connected set then it is called a Region of image. The boundary of a region R is the set of pixels in the region that have one or more neighbors that are not in R.
  • 46. Distance For pixel p, q, and z with coordinates (x,y), (s,t) and (u,v), D is a distance function or metric if w D(p,q) 0 (D(p,q) = 0 if and only if p = q) w D(p,q) = D(q,p) w D(p,z) D(p,q) + D(q,z) Example: Euclidean distance 2 2 ) ( ) ( ) , ( t y s x q p De - + -  The pixels having a distance less than or equal to some value r from (x,y) are the points contained in a disk of radius r centered at (x,y)
  • 47. Distance (cont.) D4-distance (city-block distance) is defined as t y s x q p D - + -  ) , ( 4 1 2 1 0 1 2 1 2 2 2 2 2 2 Pixels with D4(p) = 1 is 4-neighbors of p. Distance The pixels having a D4 distance from (x,y) less than or equal To some value r from a diamond centered at (x,y).
  • 48. Distance (cont.) D8-distance (chessboard distance) is defined as ) , max( ) , ( 8 t y s x q p D - -  1 2 1 0 1 2 1 2 2 2 2 2 2 Pixels with D8(p) = 1 is 8-neighbors of p. 2 2 2 2 2 2 2 2 1 1 1 1 The pixels having a D8 distance from (x,y) less than or equal To some value r from a square centered at (x,y).