Digital Image Processing_Unit 1_ASRao
Digital Image Processing_Unit 1_ASRao
ASRao
Te x t B o o k s
ASRao
Introduction
ASRao
Image is a pictorial representation
ASRao
of something or someone
Image
2 – dimensional function f(x, y)
It is a projection of 3D scene in 2D plane
1. Analog Image
2. Digital Image
ASRao
Image Representation
ASRao
Advantages of Digital Images
Fast processing
Cost effective
Effective storage
Efficient transmission
Scope for versatile image manipulation
ASRao
Three Levels of Digital Image Processing
Biometrics
Vehicle number plate detection
Content based Image retrieved (CBIR)
Steganography
Medical imaging
Object recognition
Image enhancement and noise removal
History of Digital Image Processing
Launched in 1990 the Hubble telescope can take images of very distant
objects.
However, an incorrect mirror made many of Hubble’s images useless.
Image processing techniques were used to fix this
Examples: Artistic Effects
Take slice from MRI scan of canine heart, and find boundaries between
types of tissue
– Image with gray levels representing tissue density
– Use a suitable filter to highlight edges
Examples: GIS
Gray-Scale Image
8 bits/pixel data: 28 = 256 Shades of gray
0: Black 255: White
Monochrome Images
ASRao
RGB Image (Color Image)
24 bits/pixel - 3 band color Image, 8 bits for each color
8 – bit color format: Gray Scale Image
16 – bit color format: High color format
24 – bit color format: True color format
Multispectral Images
7 to 10 Spectral bands
Ex. Remote sensing images: TIFF, GIF images
Hyperspectral Images
Hundreds or thousands of Spectral bands
To capture wavelengths beyond human vision
Types of Image Files
[ File format (Header + Image data) to represent the digital images ]
The interval [Lmin, Lmax] is called gray scale. Common practice is to shift
this interval numerically to the interval [0, L-1] where I=0 is considered
black and I=L-1 is considered white on the gray scale. All intermediate
values are shades of gray varying from black to white.
Spatial Resolution
Vision specialists will often talk about pixel size
ASRao
Graphic designers will talk about dots per inch
Spatial Resolution:
- Measures the number of pixels in an image
- More pixels = clearer picture with more details
- Measured in pixels per inch (PPI) or dots per inch (DPI)
Gray Level Resolution:
- Measures the number of shades of gray in an image
- More shades = more detailed and nuanced picture
- Measured in bits (e.g., 8-bit, 16-bit)
Note:
- Spatial resolution affects the image's clarity and detail
- Gray level resolution affects the image's contrast and shading
ASRao
Intensity Level Resolution
ASRao
Fundamental Steps in Digital Image Processing
There are two categories of the steps involved in the image processing –
1. Methods whose outputs and input are images.
2. Methods whose outputs are attributes extracted from those images.
The knowledge about a Problem Domain is coded into an image
processing system.
The knowledge Base controls the interaction between different modules
of an image processing system.
Image Acquisition
It is the first process.
Generally, the image acquisition stage involves preprocessing, such as
scaling
g(i,j)
i(x,y)
It deals with tools for extracting image components that are useful in
the representation and description of shape and boundary of objects.
It is majorly used in automated inspection applications.
Segmentation
ASRao
Components of an Digital Image Processing System
Network
Image Sensors
Two elements are required to acquire digital image:
- Physical device that is sensitive to the energy radiated by the
object we wish to image.
- Digitizer that is used for converting the output of the physical
sensing device into digital form.
ASRao
Human Visual System
The human visual system consists of two primary components: the eye
and the brain, which are connected by the optic nerve.
ASRao
In this diagram, we can see the detailed view of the retina. As it consists
rods and cones, they termed so because of their shape.
The cones are responsible for color vision and rods are responsible for
peripheral vision.
ASRao
ASRao
Distribution of Rods and Cones in the Retina
The density of the cones is maximum at fovea. At the blind spot there
are neither rods nor cones. ASRao
Image Formation in the Eye
For a clear perception, the image of the object should be focused on the
fovea of a retina.
During perception the object by the eye, the object lens distance and
lens image i.e., fovea may be fixed.
However the focusing is achieved by varying the focal length of the lens.
To focus on distant objects, the Ciliary muscles cause the lens to be
flattened i.e higher focal length.
Similarly to focus on near by objects,
the lens made thicker.
ASRao
For objects more than 3m away, the lens exhibits lowest refractive power
i.e. fully flattened. In this case the distance between the optical center
and retinal image is about 17mm.
ASRao
Brightness Adaption and Discrimination
The range of light intensity levels to which the human visual system can
adapt is on the order of 1010 from the scotopic threshold (minimum low
light condition) to the glare limit (maximum light level condition)
ASRao
Subjective brightness
Subjective brightness is brightness as perceived by the human visual
system.
Subjective brightness:
Image A appears brighter (high contrast)
Image B appears dimmer (low contrast)
Example 2:
Subjective brightness:
Room A appears darker (psychological factor)
Room B appears brighter (psychological
ASRao factor)
Subjective brightness is a logarithmic function of the light intensity
incident on the eye.
This characteristic is illustrated
in the figure, which is a plot of
light intensity versus subjective
brightness.
The long solid curve represents
the range of intensities to which
the visual system can adapt.
In photopic vision alone, the
range is about 106
The transition from scotopic to
photopic vision is gradual over
the approximate range -3 to -1
mL in the log scale.
For a given set of conditions, the current sensitivity level of the visual
system is called the brightness adaptation
ASRao level which may correspond.
This figure shows the range of intensities human system can adapt.
When illumination is low i.e. scotopic vision (dim light vision) plays the
dominant role. Whereas for high intensities, Photopic vision is dominant.
ASRao
Brightness discrimination or Contrast Sensitivity is the ability of the eye
to discriminate between changes in light intensity at any specific
adaptation level.
The response of the human eye to changes in the intensity of illumination
is non-linear.
ASRao
Now the observer is asked to look on to the glass plate from top. At the
center of this plate the intensity of the illumination is increased from I
to I+Δic, the change in illumination.
The Weber ratio is different for different persons and therefore, it is said
that the response of human eye to changes in intensity is nonlinear.
Low weber ratio means that even a small variation of Δic is detected by
the observer. High weber ratio implies that large variations were required
for the observer to notice the changes over i.e. Δic + Δic + ….. .
ASRao
Hence, a low weber ratio means that the observer has a good contrast
sensitivity and a high ratio means the observer has poor contrast
sensitivity. So proper illumination and weber ratio of most of the people
is constant near 0.02.
From the graph, you can see that the weber ratio is not very low and very
high levels of light intensity. why? Our discrimination quality reduces
when we are in a room that is not well lit with light. At the same time our
discrimination quality also reduces when there is too much of light. The
intensity of the light is very high or very low, we cannot discriminate and
the weber is very high. But for most of the persons the weber ratio is
approximately 0.02. ASRao
Simultaneous Contrast
The simultaneous contrast phenomenon: each small square is actually the
same intensity but, because of the different intensities of the surrounds,
the small squares do not appear equally bright.
The hue of a patch is also dependent on the wavelength composition of
surrounding light.
Image Sensors
Image Acquisition using a Single Sensor
ASRao
Inline arrangement of sensors in one direction – will capture image in
one direction.
Motion perpendicular to the strip provides imaging in other direction.
- Sensor strip captures horizontal lines.
- Vertical motion captures entire image.
- Image is constructed line by line.
Sensor strips in a ring configuration
are used in medical and industrial
imaging to obtain cross-sectional
(“slice”) images of 3-D objects.
A rotating X-ray source provides
illumination, and X-ray sensitive
sensors opposite the source collect
the energy that passes through the
object.
This is the basis for medical and industrial computerized axial
tomography (CAT) imaging ASRao
Image Acquisition using a Sensor Arrays
Individual sensors are arranged in the form of 2-D array. This type of
arrangement is found in digital cameras.
Light from the object (e.g., book page)
falls onto the sensor array.
Each sensor measures the light energy it
receives.
The sensor's response is proportional to
the total light energy it receives over
time.
ASRao
Image
Sampling & Quantization
ASRao
In Digital Image Processing, signals captured from the physical world
need to be translated into digital form by “Digitization” process.
Quantization
- Amplitude digitization
ASRao
ASRao
Figure shows a continuous image f that we want to convert to digital
form.
ASRao
The sample points are indicated by a vertical tick marks at the bottom
of the figure.
The samples are shown small white superimposed on the function.
The set of these discrete locations gives the sampled function.
To form a digital function, the intensity values must be converted
(quantized) into discrete quantities.
The right side of the figure shows the intensity scale divided into eight
discrete intervals, ranging from black
ASRao
to white.
The continuous intensity levels are quantized by assigning one of the
eight values to each sample.
The assignment is made depending on the vertical proximity of a
sample to a vertical tick mark.
The digital samples resulting from both sampling an quantization are
shown in figure. ASRao
First figure shows a continuous image projected onto the plane of an
array sensor.
Second figure shows the image after sampling and quantization.
ASRao
We are going to see:
Neighborhood
Adjacency
Connectivity
Paths
ASRao
(x-1,y-1) (x,y-1) (x+1,y-1)
ASRao
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.
m-adjacency:
ASRao
A
Sa lla
ny nk
as i
iR
a