DIP Lecture2 PDF
DIP Lecture2 PDF
Lecture # 2
Recap of Previous Lecture
• Origin of digital image
• Digital image processing
• Application domains
• Components of digital image processing
system
A camera creates an image …
The image I(x,y) measures how much light is captured at pixel (x,y)
We want to know
• Where does a point (X,Y,Z) in the world get imaged?
• What is the brightness at the resulting point (x,y)?
Image Formation Model
(The Pinhole Camera)
What is Focal Length
Light and the Electromagnetic Spectrum
Image Sensing and Acquisition
Image Acquisition Using Sensor
Arrays
Image Sampling and Quantization
Continuous and Digital Image
Representing Digital Images
Representing Digital Images
A simple image formation model
Mathematical model for a simple
image formation
About illuminations and reflectance
Representing Digital Images
Representing Digital Images
Representing Digital Images
Spatial and Gray-Level Resolution
• Sampling is the principal factor determining
the spatial resolution of an image. Basically,
spatial resolution is the smallest detail in an
image.
• Gray-level resolution similarly refers to the
smallest change in gray level The most
common number is 8 bits, with 16 bits being
used in some applications where
enhancement of specific gray-level ranges is
necessary.
Effect of Resolution and Levels
• Reduces the size/resolution of image by using
fixed levels.
• Reduce the level and keep the size/resolution
fix.
Example of Sub-sampling
Effect of Sub-Sampling
Results of sub-Sampling
• The useful information is lost
• Increase in sub sampling increases graininess
Resolution is fixed while gray levels
are decreased
Resolution is fixed while gray levels
are decreased
Disadvantages of a low gray level
image
• This effect, caused by the use of an insufficient
number of gray levels in smooth areas of a digital
image, is called false contouring, so called
because the ridges resemble topographic
contours in a map.
P(x,y)
Neighbors of a pixel (4- neighbors)
Neighbors of a pixel (4- neighbors)
A pixel p at co-ordinates (x,y) has four neighbor, two are
horizontal and two are vertical and this is represented by p=N4(p)
What are the horizontal and vertical neighbor in the given case?
(x-1,y)
(x,y-1) P(x,y) (x,y+1)
(x+1,y)
P (x,y) 1
2
(x-1,y-1) (x-1,y+1)
P(x,y)
(x+1,y-1) (x+1,y+1)