2011-04-05 Digital Image Processing Achim J. Lilienthal AASS Learning Systems Lab, Dep. Teknik Room T1209 (Fr, 11-12 o'clock) [email protected] Course Book Chapters 1 & 2 Part 1: Course Introduction
2011-04-05
Digital Image Processing
Achim J. Lilienthal
AASS Learning Systems Lab, Dep. Teknik
Room T1209 (Fr, 11-12 o'clock)
Course Book Chapters 1 & 2
Part 1: Course Introduction
Digital Image Processing
1. Introduction digital images
human visual perception, optical illusions, e-m spectrum
example application – person tracking with mobile robots
example image understanding – tiny images approach
2. Course Contents
3. Digital Image Acquisition image formation model
image sampling and quantization, zooming and shrinking
Contents
Digital Image Processing
IntroductionDigital Images
→ Contents
Digital Image Processing
digital image of a rat
Introduction – Digital Images1
Digital Images a finite set of digital values (picture elements = pixels)
each pixel is associated to a position in a 2D region
each pixel has a value
magnification of the rat’s nose
Digital Image Processing
Introduction – Digital Images1
Digital Images can be thought of as a matrix (raster image / raster map)
of grey levels / intensity values
94 100 104 119 125 136 143 153 157 158
103 104 106 98 103 119 141 155 159 160
109 136 136 123 95 78 117 149 155 160
110 130 144 149 129 78 97 151 161 158
109 137 178 167 119 78 101 185 188 161
100 143 167 134 87 85 134 216 209 172
104 123 166 161 155 160 205 229 218 181
125 131 172 179 180 208 238 237 228 200
131 148 172 175 188 228 239 238 228 206
161 169 162 163 193 228 230 237 220 199
magnification of the rat’s nose
Digital Image Processing
Introduction – Digital Images1
Digital Images types ← dimensionality and nature of pixel values
binary (bilevel)
grey scale
color
false-color
multi-spectral
semantic (thematic), ...
3D Digital Images picture elements are called voxels
(from "volumetric" and "pixel") → not addressed here
Digital Image Processing
Introduction – Electromagnetic Spectrum1
The Electromagnetic Spectrum we perceive only a small range of colours of the
electromagnetic spectrum (~ 430nm – 790nm) gamma rays, X rays, ultraviolet light, visible spectrum,
infrared, microwaves, radio waves, ...
Digital Image Processing
Introduction – Electromagnetic Spectrum1
The Electromagnetic Spectrum fundamental equations
relation between wavelength (λ) and frequency (ν):
relation between energy and frequency:νλ c=
νhE =
Digital Image Processing
Introduction – Electromagnetic Spectrum1
The Electromagnetic Spectrum we perceive only a small range of colours of the
electromagnetic spectrum (~ 430nm – 790nm)
objects are perceived by the light they reflect achromatic light: all wavelengths are reflected equally
chromatic light: some wavelengths are reflected predominantly
Digital Image Processing
IntroductionBiological Vision
→ Contents
Digital Image Processing
Introduction – Visual Perception1
Metaphysics All men by nature desire to know.
An indication of this is the delight we take in our senses; for even apart from their usefulness they are loved for themselves; and above all others the sense of sight.
Aristotle (384 BC – 322 BC)
Digital Image Processing
Introduction – Visual Perception1
The Human Eye
Digital Image Processing
Introduction – Visual Perception1
What happens? photons are reflected at objects
pattern of reflected photons is sensed … biological vision: with photoreceptors ( pixel)
computer vision: with a (digital) camera
… and further processed as a multidimensional signal biological vision: in the visual cortex
computer vision: DIP, computer vision
from Per-Erik Forssén "Visual Object Detection"
Vision
Digital Image Processing
Introduction – Visual Perception1
Image Formation – Pinhole Camera Model
from Per-Erik Forssén "Visual Object Recognition"
Digital Image Processing
Introduction – Visual Perception1
Image Formation – Pinhole Camera Model focal length between
17 mm (min. refractive power, objects farther than 3m) and
14 mm (max. refractive power)
focal length (min. refractive power)
15 / 100 = h / 17 ⇒ h = 2.55 mm
Digital Image Processing
Introduction – Visual Perception1
The Human Eye sphere (diameter ~ 20 mm)
Digital Image Processing
Introduction – Visual Perception1
The Human Eye cornea
constant thickness
lens with fixed focal length
responsible for ~ 75% of the refraction
Digital Image Processing
Introduction – Visual Perception1
The Human Eye cornea
constant thickness
lens with fixed focal length
responsible for ~ 75% of the refraction
lens can be contracted
zoom (to a plane)
shape of lens is varied to focus on objects at different distances
IR and UV light are absorbed by proteins in the lens structure
Digital Image Processing
Introduction – Visual Perception1
The Human Eye cornea
constant thickness
lens with fixed focal length
responsible for ~ 75% of the refraction
lens can be contracted
zoom (to a plane)
2D image on the retina represents the light pattern reflected from a thin plane in the 3D spatial world, the lens is focused on
Digital Image Processing
Introduction – Visual Perception1
The Human Eye pupil
opening varies from 2 to 8 mm
regulates the amount of light reaching the retina
Digital Image Processing
Introduction – Visual Perception1
The Human Eye pupil
opening varies from 2 to 8 mm
regulates the amount of light reaching the retina
aperture of a camera
source: Wikipedia (http://en.wikipedia.org/wiki/Aperture)
Digital Image Processing
Introduction – Visual Perception1
The Human Eye pupil
opening varies from 2 to 8 mm
regulates the amount of light reaching the retina
aperture of a camera
light reaches the retinal surface(spherical, inner wall of the eyeball)
photoreceptors "translate" light into electrical pulses
distributed over the retinal surface
non-uniform resolution
Digital Image Processing
Introduction – Visual Perception1
Foveal/Peripheral View
Digital Image Processing
Introduction – Visual Perception1
Foveal/Peripheral View
Digital Image Processing
Introduction – Visual Perception1
Foveal/Peripheral View
Digital Image Processing
Introduction – Visual Perception1
Foveal/Peripheral View
Digital Image Processing
Introduction – Visual Perception1
The Human Eye pupil
opening varies from 2 to 8 mm
regulates the amount of light reaching the retina
aperture of the eye
light reaches the retinal surface(spherical, inner wall of the eyeball)
photoreceptors are distributed over the retinal surface cones & rods
Digital Image Processing
Introduction – Visual Perception1
The Human Eye two classes of light receptors
distributed over the retinal surface cones (bright-light vision – phototopic)
• 6-7 million around fovea
• colour & bright-light vision
• fine details
• cones with peak sensitivity for long, medium and short wavelengths (red, green, blue)
• only cones in the fovea
Digital Image Processing
Introduction – Visual Perception1
The Human Eye two classes of light receptors
distributed over the retinal surface cones (bright-light vision – phototopic)
• 6-7 million around fovea
• colour & bright-light vision
• fine details
• red, green, blue
rods (dim-light vision – scotopic)
• 75-150 million
• coarse details
• "night vision"
Digital Image Processing
Introduction – Visual Perception1
Receptor Distribution in the Human Eye no receptors where the optic nerve emerges (blind spot)
radially symmetric distribution around the fovea except from the blind spot
distribution of rods and cones around the fovea
Digital Image ProcessingDigital Image Processing
Introduction – Visual Perception1
Why do we sometimes have red eyes in photos?
Digital Image Processing
Introduction – Visual Perception1
Digital Image Processing
Introduction – Visual Perception1
The Fovea responsible for sharp vision (reading, watching television, ...)
circular indentation (diameter ~ 15 mm)
approx. 330 000 cones in this area (~ a 15 x 15 mm2 square sensor)
Digital Image Processing
Introduction – Visual Perception1
The Fovea responsible for sharp vision (reading, watching television, ...)
circular indentation (diameter ~ 15 mm)
approx. 330 000 cones in this area (~ a 15 x 15 mm2 square sensor)
resolution that can be achieved with a CCD chip? 10 MP camera
• 7.2 x 5.3 mm2
(260 000 pixels / mm2)
• 590 000 "pixels" on 1.5 x 1.5 mm2
(260 000 "pixels" / mm2)
Digital Image Processing
Introduction – Visual Perception1
Receptor Position in the Human Eye photo-receptors turned away from the lens!
Digital Image Processing
Introduction1
Brightness Adaptation in the Human Eye human eye can adapt over 10 orders of magnitude!
6 orders in phototopic vision (cones)
accomplished by brightness adaptation(changes in the overall sensitivity)
much smaller range for eachbrightness adaptation level Ba
subjective brightness is a log function of the light intensity
brightness discrimination poor at low levels of illumination
better with increasing illumination
Digital Image Processing
Introduction – Sensation vs Perception1
Ganglion Cells ≈ 125 million rods & cones ≈ 1 million ganglion cells
implement local neighbourhood operations(local receptive field)
respond if there is a differencebetween "center and surround"(center-surround cells)
contrast-sensitive vision absolute intensity / color
not available to the brain important for colour constancy
Digital Image Processing
Introduction – Visual Perception1
Image Formation in the Human Eye perceived breightness is not a simple function of intensity!
Mach bands• stripes appear darker
near a more intense stripe (and vice versa)
• caused by inhibitory neural connections
Digital Image Processing
Introduction – Visual Perception1
Image Formation in the Human Eye perceived breightness is not a simple function of intensity!
Mach bands• stripes appear darker
near a more intense stripe (and vice versa)
• caused by inhibitory neural connections
simultaneous contrast• a regions' perceived breightness
depends on the intensity in the neighbourhood
Digital Image Processing
Introduction – Visual Perception1
perceived breightness is not a simple function of intensity! simultaneous contrast
• a regions perceived breightness depends on the intensity in the neighbourhood
Digital Image Processing
Introduction – Sensation vs Perception1
Sensation operation of basic sensory systems result of physical stimuli and low-level processes
Perception involve higher-level processes in the percipient
memories expectations emotions state of fatigue or alertness
→ "The Great Ideas of Psychology" (TTC)
Digital Image Processing
Introduction – Visual Perception1
Biological Vision development responded to evolutionary necessities
Digital Image Processing
Introduction – Visual Perception1
Biological Vision bear pixels?
Digital Image Processing
Introduction – Visual Perception1
Importance of Context
Torralba et al., CVPR 2007, Short Course
Digital Image Processing
Introduction – Visual Perception1
Importance of Context
Torralba et al., CVPR 2007, Short Course
Digital Image Processing
Introduction – Visual Perception1
Image Formation in the Human Eye perceived breightness is not a simple function of intensity!
Mach bands• stripes appear darker
near a more intense stripe (and vice versa)
• caused by inhibitory neural connections
simultaneous contrast• a regions perceived breightness
depends on the intensity in the neighbourhood
optical illusions
Digital Image Processing
Introduction – Optical Illusions1
Optical Illusions the eye / brain fills in nonexisting information
perceives geometrical properties of an object wrongly
characteristic of the human visual system and not yet fully understood ... (some examples follow)
Digital Image Processing
Introduction – Optical Illusions1
concentrate on the dot in the middle ...... and move your head back and forth
Digital Image Processing
Introduction – Optical Illusions1
movement created only in the brain
Digital Image Processing
Introduction – Optical Illusions1
concentrate on the cross in the middle ...... and the moving circle turns green! ... after a while the violet circles disappear!!
Digital Image Processing
Introduction – Optical Illusions1
1. Relax and stare for 30s - 45s to the four dots in the centre2. Then look slowly to a white wall (large uniformly coloured area) close to you 3. You will see a bright spot forms at the wall4. Now blink a few times5. What do you see? Whom do you see?
Digital Image Processing
Introduction – Optical Illusions1
Digital Image Processing
IntroductionImage Processing
→ Contents
Digital Image Processing
Introduction – Image Processing1
Image Processing versus Image Analysis
world
data image
image analysis
computer graphics
imaging
“knowledge”
image understanding, computer vision
image processing
Digital Image Processing
Introduction – Image Processing1
Image Processing versus Image Analysis
world
data image
image analysis
computer graphics
image processing
imagingvisualisation
“knowledge”
image understanding, computer vision
Digital Image Processing
Fundamental Steps in Digital Image Processing problem
Lara Croft has to get out of a room
Introduction – Image Processing1
Digital Image Processing
Fundamental Steps in Digital Image Processing problem
image acquisition
Introduction – Image Processing1
Digital Image Processing
Fundamental Steps in Digital Image Processing problem
image acquisition
preprocessing
Introduction – Image Processing1
Digital Image Processing
Fundamental Steps in Digital Image Processing problem
image acquisition
preprocessing
segmentation
Introduction – Image Processing1
Digital Image Processing
Fundamental Steps in Digital Image Processing problem
image acquisition
preprocessing
segmentation
representation and description model of objects
Introduction – Image Processing1
Digital Image Processing
Fundamental Steps in Digital Image Processing problem
image acquisition
preprocessing
segmentation
representation and description model of objects
recognition and interpretation what are these objects?
Introduction – Image Processing1
Digital Image Processing
Fundamental Steps in Digital Image Processing problem
image acquisition
preprocessing
segmentation
representation and description model of objects
recognition and interpretation what are these objects?
solution
Introduction – Image Processing1
Digital Image Processing
Course Contents
→ Contents
Digital Image Processing
Course Contents2
Filtering in the Spatial Domain(Image Enhancement)
"Lena" with noise Median filtering edge detection
Digital Image Processing
Course Contents2
Fourier Transform
original image power spectrum after Fourier transformation
inverse transform of filtered power spectrum
Digital Image Processing
Course Contents2
Image Restoration
?
Digital Image Processing
Course Contents2
Binary Image Operations
original image thresholding closing
Digital Image Processing
Course Contents2
Segmentation
original image segmented (binary) image
?
Digital Image Processing
Course Contents2
Morphological Image Processing & Shape Description
grey image
... after segmentation
... after morphological closing
... after skeletonization
Digital Image Processing
Course Contents2
Colour Representation and Use
RGB space CIE’s chromaticity diagram
Digital Image Processing
Course Contents2
Classification and Introduction to Pattern Recognition
original image result of classification
?
Digital Image Processing
Digital Image Acquisition
→ Contents
Digital Image Processing
Digital Image Acquisition3
Digital Image Representation f(x,y) as a matrix of real numbers
elements of the matrix are called pixels (2D)
)(
)1,1(...)1,1()0,1(
)1,1(...)1,1()0,1()1,0(...)1,0()0,0(
),( ija
NMfMfMf
NfffNfff
yxf =
−−−−
−−
=
Digital Image Processing
Image Formation and Image Sampling3
Image Formation Model illumination i(x,y) from a source reflectivity r(x,y) = reflection / absorption in the scene
f(x,y) = i(x,y) r(x,y) i ~
0.1 lm/m2 (full moon) 1000 lm/m2 (office) 10'000 lm/m2 (cloudy day) 90'000 lm/m2 (sunny day)
Digital Image Processing
Image Formation and Image Sampling3
Image Formation Model illumination i(x,y) from a source reflectivity r(x,y) = reflection / absorption in the scene
f(x,y) = i(x,y) r(x,y) r =
0.01 (black velvet) 0.65 (stainless steel) 0.80 (flat white wall) 0.90 (silver-plated metal) 0.93 (snow)
Digital Image Processing
Image Formation and Image Sampling3
Image Formation Model illumination i(x,y) from a source reflectivity r(x,y) = reflection / absorption in the scene
f(x,y) = i(x,y) r(x,y)
Image Sampling digital image can be seen as a 2D function f(x,y)
x and y are the spatial coordinates
f(x,y) is the grey level / intensity at position (x,y)
a digital image must be sampled (digitized) in space (x,y): image sampling
in amplitude f(x,y): grey-level quantization
Digital Image Processing
Digital Image Acquisition3
Image Sampling and Quantization conversion of continuous input signal to a digital form
continuous signal digitized image
Digital Image Processing
Digital Image Acquisition3
Image Sampling and Quantization conversion of continuous input signal to a digital form
sample f(x,y) inboth coordinates(sampling)
continuous signal
Digital Image Processing
Digital Image Acquisition3
Image Sampling and Quantization conversion of continuous input signal to a digital form
sample f(x,y) inboth coordinates(sampling)
continuous signal
Digital Image Processing
Digital Image Acquisition3
Image Sampling and Quantization conversion of continuous input signal to a digital form
sample f(x,y) inboth coordinates(sampling)
sample f(x,y) inamplitude(quantization)
Digital Image Processing
Digital Image Acquisition3
Image Sampling uniform – same sampling frequency everywhere
adaptive – higher sampling frequency in areas with greater detail (not very common)
determines the spatial resolution
Digital Image Processing
Digital Image Acquisition3
Image Sampling spatial resolution:
smallest discernible detail in the image(line pairs per mm, for example)
5122561286432
Digital Image Processing
Digital Image Acquisition3
Image Quantisation greylevel quantization
2563282
2011-04-05
Digital Image Processing
Achim J. Lilienthal
AASS Learning Systems Lab, Dep. Teknik
Room T1209 (Fr, 11-12 o'clock)
Part 1: Course Introduction
Course Book Chapters 1 & 2
Thank you!