SlideShare a Scribd company logo
1 of 63
Digital Image Processing
Code : BCSE0101
Rajesh Kumar Tripathi
Assistant Professor
Dept. of Computer Engineering and Applications
Syllabus
Image Sensors,
A Simple Image Model,
Sampling and Quantization,
Image Resolution,
Element of Visual Perception.
Sensors
 Sensors are used to
transform illumination
energy into digital images.
 Sensors are three types:
Single Imaging Sensor
Line sensor
Array Sensor
Sensors: Array Sensor
A simple image formation model
 Image: a 2-D light-intensity function f(x,y)
 f(x,y): the intensity is called the gray level for
monochrome image
 0 < f(x,y) < 
 Nature of f(x,y):
 The amount of source light incident on the scene
being viewed
 The amount of light reflected by the objects in the
scene
 Illumination & reflectance components:
Illumination: i(x,y)
Reflectance: r(x,y)
f(x,y) = i(x,y) . r(x,y)
0 < i(x,y) <  and
0 < r(x,y) < 1
(from total absorption to total reflectance)
A simple image formation model
A simple image formation model
Typical values of i(x, y)
 On a sunny day, illumination
on earth’s surface is 90,000 lm/m2
 On a cloudy day it is 10,000
lm/m2
 Full moon yields 0.01 lm/m2
 Commercial office yields 1000
lm/m2
Typical values of r(x, y)
 for black velvet – 0.01
 Stainless steel – 0.65
 Flat white wall paint –
0.90
 Snow – 0.93
f(x, y) = i( x, y)  r( x, y)
Image Digitization
 Why do we need digitization?
 What is digitization?
 How to digitize an image?
Why do we need digitization?
 Theory of Real numbers - between any two given
points there are infinite number of points
 An image can be represented by infinite number of points
 Each such image point may contain one of the infinitely
many possible intensity/color values needing infinite
number of bits
 Obviously such a representation is not possible in any
digital computer
What is Digitization?
 An image to be represented in the form of a finite 2-D
matrix
Each of the matrix elements should assume one of finite
discrete values.
Image as a Matrix Number
What is Digitization?
 Image representation by 2-D finite matrix
Sampling
 Each Matrix element represented by one of the finite
set of discrete values-
Quantization
Image Sampling and Quantization
 To convert an Image to digital form, we have to sample
the Image in both coordinates (spatial domain) and in
amplitude.
 Digitizing the coordinate (spatial domain) values is
called sampling.
 Digitizing the amplitude values is called quantization.
Sampling and Quantization
Sampling and Quantization…
Image before sampling and
quantization
Image after sampling and
quantization
Digital Image?
 When x, y and the amplitude
values of f are finite, discrete
quantities, the image is called
digital image.
 A digital image is composed
of a finite number of elements,
each of which has a particular
location and value. These
elements are referred to as
picture elements, image
elements, pels and pixels.
Image Size
 Requires decisions about values for M, N, and for the
number, L, the number of gray levels typically is an
integer power of 2:
L = 2K
where k is number of bits require to represent a grey
value.
 The discrete levels should be equally spaced and that
they are integers in the interval [0, L-1].
Image Size…
 The number, b, of bits required to store a digitized image
is
b=M*N*k.
 For an image of 512 by 512 pixels, with 8 bits per pixel:
 Memory required = 256K bytes= 0.25 megabytes
Coordinate Convention used
Image Resolution
How many samples and gray levels are required
for a good approximation?
 Resolution (the degree of discernible detail) of an image
depends on sample number and gray level number.
 i.e. the more these parameters are increased, the closer the
digitized array approximates the original image.
 But: storage & processing requirements increase
rapidly as a function of N, M, and k
Image Resolution
 Spatial Resolution: Spatial resolution is the smallest
detectable detail in an image.
 Dots/pixels per unit distance
 Dots per inch – dpi
 Grey level (Intensity) Resolution: Gray-level resolution
similarly refers to the smallest detectable change in gray
level.
 The more samples in a fixed range, the higher the
resolution
 The more bits, the higher the resolution
A 1024*1024, 8-bit image sub-sampled down to size 32*32
pixels. The number of allowable gray levels was kept at 256.
(a) 1024*1024, 8-bit image. (b) 512*512 image resampled into
1024*1024 pixels by row and column duplication. (c) through (f)
256*256, 128*128, 64*64, and 32*32 images resampled into
1024*1024 pixels.
Reducing
Spatial
Resolution
Typical effects of
reducing spatial
resolution. Images are
(i) 1250 dpi (ii) 300
dpi (iii) 150 dpi (iv) 72
dpi.
Checkerboard Effect
 When the no. of pixels in an image is reduced keeping the
no. of gray levels in the image constant, fine checkerboard
patterns are found at the edges of the image. This effect is
called the checker board effect.
False Contouring
 When the no. of gray-levels in the image is low, the
foreground details of the image merge with the
background details of the image, causing ridge like
structures. This degradation phenomenon is known as
false contouring.
Varying the number of gray levels
Varying the number of gray levels
False Contouring
Resolution: How Much Is Enough?
 The big question with resolution is always how much is
enough?
 This all depends on what is in the image and what
you would like to do with it
 Key questions include
 Does the image look aesthetically pleasing?
 Can you see what you need to see within the
image?
Resolution: How Much Is Enough?
The picture on the right is fine for counting the number of
cars, but not for reading the number plate
Question?
 If we want to resize a 1024x768 image to one that is 600
pixels wide with the same aspect ratio as the original
image, what should be the height of the resized image?
 Solution:
height
width
Ratio
Aspect 
Question?
 For the original image the Aspect ratio is:
 Now for the resized image, we want the same aspect ratio
but a width of 600 pixels.
 Hence the resized image will be 600x451
451
33
.
1
600



ratio
Aspect
width
height
33
.
1
768
1024

Question?
 A common measure of transmission for digital data is the
baud rate, defined as the number of bits transmitted per
second. Transmission is accomplished in packets
consisting of a start bit, a byte(8 bits) of information and a
stop bit.
a) How many minutes would it take transmit a 1024x1024
image with 256 gray levels if we use a 56 k baud modem?
b) What would be the time required if we use a 750 k
band transmission line?
Question?
Since we have 256 gray levels, we need 8-bits for
representing each pixel.
 Along with these 8-bits, we also have start bit and a stop
bit.
 Hence we have (8+2) bits per pixel.
 So total number of bits for transmission are:
N=1024x1024x10=10485760 bits
These bits are transmitted at 56 k baud:
So time taken=N/56x103 =187.25 sec =3.1 minutes
Element of Visual Perception
Element of Visual Perception…
However, the choice of technique is often based on subjective,
visual judgement.
Element of Visual Perception…
 Average diameter is 20mm.
 3 membranes enclose the eyes-
 Cornea & scelera
 Choroid
 Retina
Element of Visual Perception…
 Average diameter is 20mm.
 3 membranes enclose the eyes-
 Cornea & scelera
 Choroid
 Retina
Structure of the human eye…
 Cornea
 Tough and transparent tissue
 Covers the frontal surface of the eye
Structure of the human eye…
 Sclera
 continuous with cornea
 opaque membrane
 encloses the remainder of
the optic globe
Structure of the human eye…
 Choroid
 The choroid contains blood vessels for eye nutrition and
is heavily pigmented to reduce extraneous light entrance
and backscatter.
 It is divided into the ciliary body and the iris diaphragm,
which controls the amount of light that enters the pupil
(2 mm ~ 8 mm).
 The lens is made up of fibrous cells and is suspended by
fibers that attach it to the ciliary body.
 It is slightly yellow and absorbs approx. 8% of the
visible light spectrum.
Structure of the human eye…
 Retina
 Light from an object is
imaged on the retina
 The retina lines the entire
posterior portion.
 Discrete light receptors are
distributed over the surface
of the retina:
 cones (6-7 million per eye)
 rods (75-150 million per eye)
Structure of the human eye…
 Cones
 Cones provide color vision and respond to higher levels
of illumination
 The density of the cones is higher in the fovea
 Each one is connected to its own nerve end.
 Cone vision is called photopic (or bright-light vision).
 Muscles controlling the eye rotate the eye ball until the
image of an object of interest falls on the fovea.
Structure of the human eye…
 Rods
 Rods are distributed over the retinal surface
 Rods give a general, overall picture of the field of view
and are not involved in color vision.
 Rods are important for black and white vision in dim
light
 Discriminate between different shades of darks and light
 Rods provide visual response called Scotopic Vision
 Objects seen by moon light appear as colourless forms
because only rods are stimulated.
Image formation in the eye
 The eye lens (as compared to an optical lens) is flexible.
 It gets controlled by the fibers of the ciliary body and to
focus on distant objects it gets flatter (and vice versa).
 Distance between the center of the lens and the retina
(focal length):
 varies from 17 mm to 14 mm (refractive power of
lens goes from minimum to maximum).
 Objects farther than 3 m use minimum refractive lens
powers (Focal Length 17 mm) and vice versa.
Image formation in the eye
Image formation in the eye
 Retinal image reflected primarily in the fovea
 Perception takes place by relative excitation of light
receptors
 Receptors transform radiant energy into electrical
impulses which are decoded by the brain
Size of retinal image(h) 15 / 100 = h / 17
h = 2.55 mm
Brightness adaptation & brightness
 Range of light intensity levels to which human visual
system (HVS)can adapt of the order of 1010
 Subjective brightness (i.e. intensity as perceived by the
HVS) is a logarithmic function of the light intensity
incident on the eye.
Scotopic
threshold
Glare
Limit
Visual phenomena & brightness adaptaion
 The subjective brightness of
human visual system has an
impressive dynamic range.
 Cannot accomplish this range
simultaneously
Visual phenomena : brightness adaptaion
 The HVS(Human Visual System) accomplishes this
wide variation by changes in
its overall sensitivity.
Brightness Adaptation
Level
For any given set of
conditions, the current
sensitivity level of HVS
Brightness discrimination
 Weber ratio (the experiment) Δ Ic/I
 I: the background illumination
 Δ Ic : the increment of illumination
 Small Weber ratio indicates good discrimination
 Larger Weber ratio indicates poor discrimination
Psychovisual Effects
 The perceived brightness is not a simple function of
intensity
 Mach band pattern
 The visual system tends to undershoot or overshoot
around the boundary of regions of different intensities
 Simultaneous contrast
 A region’s perceived brightness does not depend simply
on its intensity.
 Optical illusion
 Eye fills in nonexisting information or wrongly perceives
geometrical properties of objects
Psychovisual Effects: Match & Band Pattern
 The Mach band effect is illustrated in the figure above.
 The intensity is uniform over the width of each bar.
 However, the visual appearance is that each strip is darker at its
right side than its left.
 A region’s perceived brightness does not depend simply on its
intensity.
Psychovisual Effects: Simultaneous Contrast
 The simultaneous contrast phenomenon is illustrated
above.
 The small squares in each image are the same intensity.
 Because of the different background intensities, the small
squares do not appear equally bright.
Psychovisual Effects: Optical Illusion
 Eye fills in non existing
information or wrongly
perceives geometrical
properties of an object.
Psychovisual Effects: Optical Illusion…
Psychovisual Effects: Optical Illusion…
Psychovisual Effects: Optical Illusion…
Electromagnetic Spectrum
Spectrum of Colors
Sir Isaac Newton
Spectrum of Colors
Electromagnetic Spectrum
 Speed = frequency x wavelength
i.e λ = c/ν
 Speed of light is 3 x 108 m/sec.
 The energy E, of the various components of the
electromagnetic spectrum is given as:
E = h ν
where h is Planck’s constant
Chromatic Light
 Radiance
 Total amount of energy that flows from the light source
 Measured in Watts (W)
 Luminance
 Measures the amount of energy an observer perceives from a
light source.
 Measured in lumens (lm)
 Brightness
 Subjective descriptor – practically impossible to measure.
 It embodies the notion of intensity.
 Key factor in describing colour sensation.

More Related Content

What's hot

Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filterarulraj121
 
filters for noise in image processing
filters for noise in image processingfilters for noise in image processing
filters for noise in image processingSardar Alam
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filtersA B Shinde
 
Image processing spatialfiltering
Image processing spatialfilteringImage processing spatialfiltering
Image processing spatialfilteringJohn Williams
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restorationMd Shabir Alam
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsKalyan Acharjya
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing PresentationRevanth Chimmani
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processingRaghu Kumar
 
Digital image processing
Digital image processingDigital image processing
Digital image processingABIRAMI M
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: BasicsA B Shinde
 
Wavelet transform in image compression
Wavelet transform in image compressionWavelet transform in image compression
Wavelet transform in image compressionjeevithaelangovan
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersKuppusamy P
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image RestorationMostafa G. M. Mostafa
 

What's hot (20)

Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
filters for noise in image processing
filters for noise in image processingfilters for noise in image processing
filters for noise in image processing
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Image processing spatialfiltering
Image processing spatialfilteringImage processing spatialfiltering
Image processing spatialfiltering
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Wiener Filter
Wiener FilterWiener Filter
Wiener Filter
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Subband Coding
Subband CodingSubband Coding
Subband Coding
 
Wavelet transform in image compression
Wavelet transform in image compressionWavelet transform in image compression
Wavelet transform in image compression
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image Restoration
 

Similar to Digital Image Processing Code and Syllabus

Advance image processing
Advance image processingAdvance image processing
Advance image processingAAKANKSHA JAIN
 
Digital imaging in dentistry / orthodontics courses
Digital imaging in dentistry / orthodontics courses Digital imaging in dentistry / orthodontics courses
Digital imaging in dentistry / orthodontics courses Indian dental academy
 
A representation of the original image by a discrete set of data points
A representation of the original image by a discrete set of data pointsA representation of the original image by a discrete set of data points
A representation of the original image by a discrete set of data pointsManoj Pandey
 
Adaptive Median Filters
Adaptive Median FiltersAdaptive Median Filters
Adaptive Median FiltersAmnaakhaan
 
Recent advances digital imaging /certified fixed orthodontic courses by India...
Recent advances digital imaging /certified fixed orthodontic courses by India...Recent advances digital imaging /certified fixed orthodontic courses by India...
Recent advances digital imaging /certified fixed orthodontic courses by India...Indian dental academy
 
Recent advances digital imaging /certified fixed orthodontic courses by India...
Recent advances digital imaging /certified fixed orthodontic courses by India...Recent advances digital imaging /certified fixed orthodontic courses by India...
Recent advances digital imaging /certified fixed orthodontic courses by India...Indian dental academy
 
DIGITAL IMAGE FUNDAS.ppt
DIGITAL IMAGE FUNDAS.pptDIGITAL IMAGE FUNDAS.ppt
DIGITAL IMAGE FUNDAS.pptHari M
 
Digital imaging /certified fixed orthodontic courses by Indian dental academy
Digital imaging /certified fixed orthodontic courses by Indian dental academy Digital imaging /certified fixed orthodontic courses by Indian dental academy
Digital imaging /certified fixed orthodontic courses by Indian dental academy Indian dental academy
 
Chap_1_Digital_Image_Fundamentals_DD (2).pdf
Chap_1_Digital_Image_Fundamentals_DD (2).pdfChap_1_Digital_Image_Fundamentals_DD (2).pdf
Chap_1_Digital_Image_Fundamentals_DD (2).pdfMrNeon5
 

Similar to Digital Image Processing Code and Syllabus (20)

Advance image processing
Advance image processingAdvance image processing
Advance image processing
 
Image processing.pptx
Image processing.pptxImage processing.pptx
Image processing.pptx
 
Digital imaging
Digital imagingDigital imaging
Digital imaging
 
CG.pptx
CG.pptxCG.pptx
CG.pptx
 
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
 
M.sc.iii sem digital image processing unit i
M.sc.iii sem digital image processing unit iM.sc.iii sem digital image processing unit i
M.sc.iii sem digital image processing unit i
 
M.sc.iii sem digital image processing unit i
M.sc.iii sem digital image processing unit iM.sc.iii sem digital image processing unit i
M.sc.iii sem digital image processing unit i
 
A representation of the original image by a discrete set of data points
A representation of the original image by a discrete set of data pointsA representation of the original image by a discrete set of data points
A representation of the original image by a discrete set of data points
 
DIP PPT (1).pptx
DIP PPT (1).pptxDIP PPT (1).pptx
DIP PPT (1).pptx
 
Adaptive Median Filters
Adaptive Median FiltersAdaptive Median Filters
Adaptive Median Filters
 
Recent advances digital imaging /certified fixed orthodontic courses by India...
Recent advances digital imaging /certified fixed orthodontic courses by India...Recent advances digital imaging /certified fixed orthodontic courses by India...
Recent advances digital imaging /certified fixed orthodontic courses by India...
 
Recent advances digital imaging /certified fixed orthodontic courses by India...
Recent advances digital imaging /certified fixed orthodontic courses by India...Recent advances digital imaging /certified fixed orthodontic courses by India...
Recent advances digital imaging /certified fixed orthodontic courses by India...
 
Chapter2 DIP
Chapter2 DIP Chapter2 DIP
Chapter2 DIP
 
DIGITAL IMAGE FUNDAS.ppt
DIGITAL IMAGE FUNDAS.pptDIGITAL IMAGE FUNDAS.ppt
DIGITAL IMAGE FUNDAS.ppt
 
Digital imaging /certified fixed orthodontic courses by Indian dental academy
Digital imaging /certified fixed orthodontic courses by Indian dental academy Digital imaging /certified fixed orthodontic courses by Indian dental academy
Digital imaging /certified fixed orthodontic courses by Indian dental academy
 
Chap_1_Digital_Image_Fundamentals_DD (2).pdf
Chap_1_Digital_Image_Fundamentals_DD (2).pdfChap_1_Digital_Image_Fundamentals_DD (2).pdf
Chap_1_Digital_Image_Fundamentals_DD (2).pdf
 
What is spatial Resolution
What is spatial ResolutionWhat is spatial Resolution
What is spatial Resolution
 

Recently uploaded

Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 

Digital Image Processing Code and Syllabus

  • 1. Digital Image Processing Code : BCSE0101 Rajesh Kumar Tripathi Assistant Professor Dept. of Computer Engineering and Applications
  • 2. Syllabus Image Sensors, A Simple Image Model, Sampling and Quantization, Image Resolution, Element of Visual Perception.
  • 3. Sensors  Sensors are used to transform illumination energy into digital images.  Sensors are three types: Single Imaging Sensor Line sensor Array Sensor
  • 5. A simple image formation model  Image: a 2-D light-intensity function f(x,y)  f(x,y): the intensity is called the gray level for monochrome image  0 < f(x,y) <   Nature of f(x,y):  The amount of source light incident on the scene being viewed  The amount of light reflected by the objects in the scene
  • 6.  Illumination & reflectance components: Illumination: i(x,y) Reflectance: r(x,y) f(x,y) = i(x,y) . r(x,y) 0 < i(x,y) <  and 0 < r(x,y) < 1 (from total absorption to total reflectance) A simple image formation model
  • 7. A simple image formation model Typical values of i(x, y)  On a sunny day, illumination on earth’s surface is 90,000 lm/m2  On a cloudy day it is 10,000 lm/m2  Full moon yields 0.01 lm/m2  Commercial office yields 1000 lm/m2 Typical values of r(x, y)  for black velvet – 0.01  Stainless steel – 0.65  Flat white wall paint – 0.90  Snow – 0.93 f(x, y) = i( x, y)  r( x, y)
  • 8. Image Digitization  Why do we need digitization?  What is digitization?  How to digitize an image?
  • 9. Why do we need digitization?  Theory of Real numbers - between any two given points there are infinite number of points  An image can be represented by infinite number of points  Each such image point may contain one of the infinitely many possible intensity/color values needing infinite number of bits  Obviously such a representation is not possible in any digital computer
  • 10. What is Digitization?  An image to be represented in the form of a finite 2-D matrix Each of the matrix elements should assume one of finite discrete values.
  • 11. Image as a Matrix Number
  • 12. What is Digitization?  Image representation by 2-D finite matrix Sampling  Each Matrix element represented by one of the finite set of discrete values- Quantization
  • 13. Image Sampling and Quantization  To convert an Image to digital form, we have to sample the Image in both coordinates (spatial domain) and in amplitude.  Digitizing the coordinate (spatial domain) values is called sampling.  Digitizing the amplitude values is called quantization.
  • 15. Sampling and Quantization… Image before sampling and quantization Image after sampling and quantization
  • 16. Digital Image?  When x, y and the amplitude values of f are finite, discrete quantities, the image is called digital image.  A digital image is composed of a finite number of elements, each of which has a particular location and value. These elements are referred to as picture elements, image elements, pels and pixels.
  • 17. Image Size  Requires decisions about values for M, N, and for the number, L, the number of gray levels typically is an integer power of 2: L = 2K where k is number of bits require to represent a grey value.  The discrete levels should be equally spaced and that they are integers in the interval [0, L-1].
  • 18. Image Size…  The number, b, of bits required to store a digitized image is b=M*N*k.  For an image of 512 by 512 pixels, with 8 bits per pixel:  Memory required = 256K bytes= 0.25 megabytes
  • 20. Image Resolution How many samples and gray levels are required for a good approximation?  Resolution (the degree of discernible detail) of an image depends on sample number and gray level number.  i.e. the more these parameters are increased, the closer the digitized array approximates the original image.  But: storage & processing requirements increase rapidly as a function of N, M, and k
  • 21. Image Resolution  Spatial Resolution: Spatial resolution is the smallest detectable detail in an image.  Dots/pixels per unit distance  Dots per inch – dpi  Grey level (Intensity) Resolution: Gray-level resolution similarly refers to the smallest detectable change in gray level.  The more samples in a fixed range, the higher the resolution  The more bits, the higher the resolution
  • 22. A 1024*1024, 8-bit image sub-sampled down to size 32*32 pixels. The number of allowable gray levels was kept at 256.
  • 23. (a) 1024*1024, 8-bit image. (b) 512*512 image resampled into 1024*1024 pixels by row and column duplication. (c) through (f) 256*256, 128*128, 64*64, and 32*32 images resampled into 1024*1024 pixels.
  • 24. Reducing Spatial Resolution Typical effects of reducing spatial resolution. Images are (i) 1250 dpi (ii) 300 dpi (iii) 150 dpi (iv) 72 dpi.
  • 25. Checkerboard Effect  When the no. of pixels in an image is reduced keeping the no. of gray levels in the image constant, fine checkerboard patterns are found at the edges of the image. This effect is called the checker board effect.
  • 26. False Contouring  When the no. of gray-levels in the image is low, the foreground details of the image merge with the background details of the image, causing ridge like structures. This degradation phenomenon is known as false contouring.
  • 27. Varying the number of gray levels
  • 28. Varying the number of gray levels False Contouring
  • 29. Resolution: How Much Is Enough?  The big question with resolution is always how much is enough?  This all depends on what is in the image and what you would like to do with it  Key questions include  Does the image look aesthetically pleasing?  Can you see what you need to see within the image?
  • 30. Resolution: How Much Is Enough? The picture on the right is fine for counting the number of cars, but not for reading the number plate
  • 31. Question?  If we want to resize a 1024x768 image to one that is 600 pixels wide with the same aspect ratio as the original image, what should be the height of the resized image?  Solution: height width Ratio Aspect 
  • 32. Question?  For the original image the Aspect ratio is:  Now for the resized image, we want the same aspect ratio but a width of 600 pixels.  Hence the resized image will be 600x451 451 33 . 1 600    ratio Aspect width height 33 . 1 768 1024 
  • 33. Question?  A common measure of transmission for digital data is the baud rate, defined as the number of bits transmitted per second. Transmission is accomplished in packets consisting of a start bit, a byte(8 bits) of information and a stop bit. a) How many minutes would it take transmit a 1024x1024 image with 256 gray levels if we use a 56 k baud modem? b) What would be the time required if we use a 750 k band transmission line?
  • 34. Question? Since we have 256 gray levels, we need 8-bits for representing each pixel.  Along with these 8-bits, we also have start bit and a stop bit.  Hence we have (8+2) bits per pixel.  So total number of bits for transmission are: N=1024x1024x10=10485760 bits These bits are transmitted at 56 k baud: So time taken=N/56x103 =187.25 sec =3.1 minutes
  • 35. Element of Visual Perception
  • 36. Element of Visual Perception… However, the choice of technique is often based on subjective, visual judgement.
  • 37. Element of Visual Perception…  Average diameter is 20mm.  3 membranes enclose the eyes-  Cornea & scelera  Choroid  Retina
  • 38. Element of Visual Perception…  Average diameter is 20mm.  3 membranes enclose the eyes-  Cornea & scelera  Choroid  Retina
  • 39. Structure of the human eye…  Cornea  Tough and transparent tissue  Covers the frontal surface of the eye
  • 40. Structure of the human eye…  Sclera  continuous with cornea  opaque membrane  encloses the remainder of the optic globe
  • 41. Structure of the human eye…  Choroid  The choroid contains blood vessels for eye nutrition and is heavily pigmented to reduce extraneous light entrance and backscatter.  It is divided into the ciliary body and the iris diaphragm, which controls the amount of light that enters the pupil (2 mm ~ 8 mm).  The lens is made up of fibrous cells and is suspended by fibers that attach it to the ciliary body.  It is slightly yellow and absorbs approx. 8% of the visible light spectrum.
  • 42. Structure of the human eye…  Retina  Light from an object is imaged on the retina  The retina lines the entire posterior portion.  Discrete light receptors are distributed over the surface of the retina:  cones (6-7 million per eye)  rods (75-150 million per eye)
  • 43. Structure of the human eye…  Cones  Cones provide color vision and respond to higher levels of illumination  The density of the cones is higher in the fovea  Each one is connected to its own nerve end.  Cone vision is called photopic (or bright-light vision).  Muscles controlling the eye rotate the eye ball until the image of an object of interest falls on the fovea.
  • 44. Structure of the human eye…  Rods  Rods are distributed over the retinal surface  Rods give a general, overall picture of the field of view and are not involved in color vision.  Rods are important for black and white vision in dim light  Discriminate between different shades of darks and light  Rods provide visual response called Scotopic Vision  Objects seen by moon light appear as colourless forms because only rods are stimulated.
  • 45. Image formation in the eye  The eye lens (as compared to an optical lens) is flexible.  It gets controlled by the fibers of the ciliary body and to focus on distant objects it gets flatter (and vice versa).  Distance between the center of the lens and the retina (focal length):  varies from 17 mm to 14 mm (refractive power of lens goes from minimum to maximum).  Objects farther than 3 m use minimum refractive lens powers (Focal Length 17 mm) and vice versa.
  • 47. Image formation in the eye  Retinal image reflected primarily in the fovea  Perception takes place by relative excitation of light receptors  Receptors transform radiant energy into electrical impulses which are decoded by the brain Size of retinal image(h) 15 / 100 = h / 17 h = 2.55 mm
  • 48. Brightness adaptation & brightness  Range of light intensity levels to which human visual system (HVS)can adapt of the order of 1010  Subjective brightness (i.e. intensity as perceived by the HVS) is a logarithmic function of the light intensity incident on the eye. Scotopic threshold Glare Limit
  • 49. Visual phenomena & brightness adaptaion  The subjective brightness of human visual system has an impressive dynamic range.  Cannot accomplish this range simultaneously
  • 50. Visual phenomena : brightness adaptaion  The HVS(Human Visual System) accomplishes this wide variation by changes in its overall sensitivity. Brightness Adaptation Level For any given set of conditions, the current sensitivity level of HVS
  • 51. Brightness discrimination  Weber ratio (the experiment) Δ Ic/I  I: the background illumination  Δ Ic : the increment of illumination  Small Weber ratio indicates good discrimination  Larger Weber ratio indicates poor discrimination
  • 52. Psychovisual Effects  The perceived brightness is not a simple function of intensity  Mach band pattern  The visual system tends to undershoot or overshoot around the boundary of regions of different intensities  Simultaneous contrast  A region’s perceived brightness does not depend simply on its intensity.  Optical illusion  Eye fills in nonexisting information or wrongly perceives geometrical properties of objects
  • 53. Psychovisual Effects: Match & Band Pattern  The Mach band effect is illustrated in the figure above.  The intensity is uniform over the width of each bar.  However, the visual appearance is that each strip is darker at its right side than its left.  A region’s perceived brightness does not depend simply on its intensity.
  • 54. Psychovisual Effects: Simultaneous Contrast  The simultaneous contrast phenomenon is illustrated above.  The small squares in each image are the same intensity.  Because of the different background intensities, the small squares do not appear equally bright.
  • 55. Psychovisual Effects: Optical Illusion  Eye fills in non existing information or wrongly perceives geometrical properties of an object.
  • 60. Spectrum of Colors Sir Isaac Newton
  • 62. Electromagnetic Spectrum  Speed = frequency x wavelength i.e λ = c/ν  Speed of light is 3 x 108 m/sec.  The energy E, of the various components of the electromagnetic spectrum is given as: E = h ν where h is Planck’s constant
  • 63. Chromatic Light  Radiance  Total amount of energy that flows from the light source  Measured in Watts (W)  Luminance  Measures the amount of energy an observer perceives from a light source.  Measured in lumens (lm)  Brightness  Subjective descriptor – practically impossible to measure.  It embodies the notion of intensity.  Key factor in describing colour sensation.