Digital Image Processing - Lecture-3
Digital Image Processing - Lecture-3
By
Teams Link
https://teams.microsoft.com/l/team/19%3aV89kJ8amsbE3ssF9V0x
mGOukoYKvZIwPVey1-
EUiL4Y1%40thread.tacv2/conversations?groupId=47e1fe88-6e6b-
433e-b771-94c21eeb96c6&tenantId=ff4a48d6-4b5e-4fd3-8266-
7eafc3e6e23e
Text Book
R. Gonzalez, R. Woods.
Digital Ιmage Processing,
Prentice Hall, 2008.
Third Edition .
What is Hue?
Hue is the main indication of color.
It is the value actually telling you which color it is
or the value that lets you go "red" when you see a
red object.
White light occurs when all wavelengths are
reflected back to the human eye.
Black light occurs when no light reflected to the
human eye.
Each different hue is
different reflected wavelength
of the light.
Optical Illusion
It is a visual stimuli that is perceived by the eyes
and then comprehended by the brain in a way that is
different from reality.
Ex: in which the eye fills in no existing information
or wrongly perceive geometrical properties of
objects.
22
Colored Image Example
Bit Planes
Image Acquisition
Methods of Digital
Image Image
Processing
Analog
Image
Analog Image
The analog image processing is applied on analog
signals and it processes only two-dimensional
signals. The images are manipulated by electrical
signals. In analog image processing, analog signals
can be periodic or non-periodic
Digital Image
A digital image processing is applied to digital images
(a matrix of small pixels and elements).
For manipulating the images, there is a number of
software and algorithms that are applied to perform
changes.
Digital image processing is one of the fastest growing
industry which affects everyone's life.
Image Digitization
An analog image is converted to a digital image by
digitizing the analog signals. We apply sampling and
quantization to the analog signals to convert them into
digital form.
A digital image is formed by arranging pixels in rows
and columns.
Image Sampling
Sampling is the process of converting an analog signal
into discrete values.
We get a finite number of samples of an analog signal.
The number of samples gives us the number of pixels.
More samples will result in higher image quality of the
digital image because of more pixels.
Sampling vs Quantization
Example
Image Contrast
Contrast is defined as difference in intensity
between highest and lowest intensity level in
the image.
When the dynamic range is very high, then the
image is said to have high contrast.
• stated with
– line pairs per unit distance,
– pixels per unit distance,
– dots per unit distance,(dpi) . 150 dpi
72 dpi
Spatial Resolution
Intensity Resolution
The number of intensity level assuming by
powers of 2.
16 gray level (4 bpp) 8 gray level (3 bpp) 4 gray level (2 bpp) 2 gray level (1 bpp)
RELATIONSHIPS BETWEEN
PIXELS
Adjacency
Two pixels are connected if they are neighbors and
their gray levels satisfy some specified criterion of
similarity.
For example, in a binary image two pixels are
connected if they are 4-neighbors and have same
value (0/1).
Adjacency
Let V be set of gray levels values used to define
adjacency.
4-adjacency: Two pixels p and q with values from V
are 4- adjacent if q is in the set 𝑁4 𝑝 .
8-adjacency: Two pixels p and q with values from V
are 8-adjacent if q is in the set 𝑁8 𝑝 .
m-adjacency: Two pixels p and q with values from V
are madjacent if:
q is in 𝑁4 𝑝
q is in 𝑁𝐷 𝑝 and the set [𝑵𝟒 𝒑 ∩𝑵𝟒 𝒒 ] is
empty (has no pixels whose values are from V).
Example
Adjacency / Connectivity
Consider the pixel arrangement shown in
the blow figure for V={1}.
Distance Measures
Distance Measures
2. 𝐷4 distance (city-block distance)
Distance Measures
3. 𝐷8 distance (chess board distance)
Distance Measures
4. 𝐷𝑚 distance:
– Is defined as the shortest m-path between
the points.
– The distance between pixels depends only
on the values of pixels.
Next Lecture
LEC.4: IMAGE ENHANCEMENT
IN THE SPATIAL DOMAIN