Unit1 DIP PDF
Unit1 DIP PDF
PROCESSING
OBJECTIVES:
The student should be made:
• To understand the digital image fundamentals.
• To get exposed to simple image enhancement techniques in Spatial
and Frequency domain.
• To learn concepts of degradation function and restoration techniques.
• To study the image segmentation and representation techniques.
• To familiarize with image compression and recognition methods.
OBJECTIVES:
REFERENCE BOOKS:
Image Processing
→ Image Analysis (or Image Understanding)
→ Computer Vision (goal: emulate human vision, branch of Artificial Intelligence ...)
The light entering the cornea is blocked by the visible colored and opaque
Iris
surface of the iris. The back of the iris is coated with a black pigment.
The pupil is the opening at the center of the iris. The pupil controls the amount
of light entering the eye ball. Its diameter varies from 1 to 8 mm in response to
Pupil
illumination changes. In low light conditions it dilates to increase the amount of
light reaching the retina. Behind the pupil is the lens of the eye.
The lens is suspended to the ciliary body by the suspensory ligament
(Zonule of Zinn), made up of fine transparent fibers. The lens is
Lens transparent (has 70% water) and absorbs approximately 8% of the visible
light spectrum. The protein in the lens absorbs the harmful infrared and
ultraviolet light and prevents damage to the eye.
Beneath the choroid lies the retina, the innermost membrane of the eye
where the light entering the eye is sensed by the receptor cells. The retina
Retina
has 2 types of photoreceptor cells − rods and cones. These receptor cells
respond to light in the 330 to 730 nm wavelength range.
The central portion of the retina at the posterior part is the fovea. It is
Fovea
about 1.5 mm in diameter.
There about 100 million rods in the eye. The rods help in the dim-light
(scotopic) vision. Their spatial distribution is radially symmetric about the
fovea, but varies across the retina. They are distributed over a larger area
Rods in the retina. The rods are extremely sensitive and can respond even to a
single photon. However they are not involved in color vision. They cannot
resolve fine spatial detail despite high number because many rods are
connected to a single nerve.
There are about 6 million cones in the eye. The cones help in the bright-
light (photopic) vision. These are highly sensitive to color. They are located
Cones primarily in the fovea where the image is focused by the lens. Each cone
cell is connected to its separate nerve ending. Hence they have the ability
to resolve fine details.
Though the photo-receptors are distributed in radially symmetric manner
about the fovea, there is a region near the fovea where there are no
Blind spot receptors. This region is called as the blind spot. This is the region where
the optic nerve emerges from the eye. Light falling on this region cannot be
sensed.
Distribution of discrete
light receptors over the
surface of the retina
2 classes of receptors:
cones and rods :
• Cones: 6-7 million in each
eye, mainly located in the
fovea. Highly sensitive to
colour, fine details.
“Photopic” or bright-light
vision
• Rods: 75-150 million,
distributed. Sensitive
to low level of illumination,
not involved in
colour vision. “Scotopic” or
dim-light vision
Photo camera: lens has fixed focal length. Focusing at various distances by varying distance
between lens and imaging plane (location of film or chip)
Human eye: converse. Distance lens-imaging region (retina) is fixed. Focal length for proper
focus obtained by varying the shape of the lens.
Brightness Adaptation and Discrimination
• Eye's ability to discriminate between different
intensity levels
• Range of light intensity levels to which the
human visual system can adapt: on the order of
1010
Mach bands
• The visual system tends to
undershoot or overshoot
around the boundary of
regions of different
intensities
• Simultaneous contrast phenomenon: a region’s perceived brightness
does not depend simply on its intensity.
Optical illusions:
The eye fills in non-
existing info or
wrongly perceives
geometrical
properties of objects
A Simple Image Formation Model
• Images denoted by two-dimensional functions f(x,y)
• Value of amplitude of f at (x,y): positive scalar quantity
• Image generated by physical process: intensity values are proportional to
the energy radiated by a physical source
(a) Continuous image projected onto a sensor array. (b) Result of image sampling and quantization.
Image Sampling and Quantization
Representing Digital Images
Continuous image: function of 2 continuous variables f(s,t)
→ digital image by sampling and quantization
→ 2D array f(x,y), M rows and N columns, (x,y) = discrete coordinates
x = 0, 1, 2,…, M-1 and y = 0, 1, 2…, N-1
Section of the real plane spanned by the coordinates of an image = spatial domain x and y
are called spatial variables or spatial coordinates
Color
spectrum seen by
passing white
light through a
prism.
Color Image Fundamentals
• Perception of colours by the human eye
• Cones can be divided into 3 principal sensing categories: (roughly) red, green and blue ~65% are
sensitive to red light, ~33% to green light and ~2% to blue (but most sensitive)
• Colours are seen as variable combinations of the primary colours: Red, Green, Blue
• From CIE* (1931), wavelengths: blue = 435.8nm, green = 546.1nm, red = 700nm
Absorption of
light by the red,
green, and blue
cones in the
human eye as a
function of
wavelength.
Color Image Fundamentals
Color Image Fundamentals
Three basic quantities are used to describe the quality of a chromatic light source: radiance, luminance, and
brightness.
Radiance:
Radiance is the total amount of energy that flows from the light source, and it is usually measured in watts
(W).
Luminance:
Luminance, measured in lumens (lm), gives a measure of the amount of energy an observer perceives from
a light source.
Brightness:
Brightness is a subjective descriptor that is practically impossible to measure. It embodies the achromatic
notion of intensity and is one of the key factors in describing color sensation
Characteristics of a colour:
• Brightness: embodies the achromatic notion of intensity
• Hue: attribute associated with the dominant wavelength in a mixture of light waves
• Saturation: refers to the relative purity or the amount of white light mixed with a hue
Hue and Saturation together = chromaticity
Colour may be characterized by its brightness and chromaticity
Color Image Fundamentals
Color Image Fundamentals
Color Image Fundamentals
Color Image Fundamentals
Colour Models
• Also called: colour spaces or colour systems
• Purpose: facilitate the specification of colours in some “standard” way
• Colour model = specification of a coordinate system and a subspace within it where each
colour is represented by a single point.
Human view of a colour object described by Hue, Saturation and Brightness (or Intensity)
• Hue: describes a pure colour (pure yellow, orange or red)
• Saturation: gives a measure of the degree to which a pure colour is diluted by white light
• Brightness: subjective descriptor practically impossible to measure. Embodies the
achromatic notion of intensity => intensity (gray level), measurable
Hue and saturation in the HSI color model. The dot is an arbitrary color point. The angle from the red axis gives
the hue, and the length of the vector is the saturation. The intensity of all colors in any of these planes is given
by the position of the plane on the vertical intensity axis.
HSI Colour Model
a b
HSI components of the RGB 24-bit colour cube image (a) Hue, (b) saturation, and (c) intensity images