Chapter 2: Digital Image Fundamentals Chapter 2: Digital Image Fundamentals
Chapter 2: Digital Image Fundamentals Chapter 2: Digital Image Fundamentals
Butterfly Nebula: Gas heated at 36000 F and traveling at 600 000 miles/hr (earth-moon
in 24 min!) from a dying star (used to be 5xsun) . Image was captured on 27 July 2009
by a Wide Field Camera (ultraviolet and visible light) onborad Hubble telescope. 2.1
Ref.: http://www.nasa.gov/mission_pages/hubble/multimedia/ero/index.html
2.2
http://www.grand-illusions.com/square.htm
1
9/15/2009
O tli
Outline
Elements of Visual Perception
Light and the Electromagnetic Spectrum
Image Sensing and Acquisition
Sampling and Quantization
2.3
The retina is
Three membranes enclose the eye: composed of
Inside the
Cornea and sclera,
sclera Choroid
Choroid, Retina choroid is the two types of
receptors:
rods and
ciliary iris
body diaphragm cones.
Pupil size: 2-8mm Nerves connecting to the retina leave the
2.4
eyeball through the optic nerve bundle.
Eye color: melanin (pigment) in iris
2
9/15/2009
The distribution of rods and cones is radially symmetric wrt the fovea (central portion
of the retina), except at the blind spot which includes no receptors.
Cones are responsible for photopic (color or bright-light) vision; while rods are for
scotopic (dim-light) vision.
Fovea area in the retina is circular with 1.5 mm in diameter where most of the cones
are concentrated with 150 000 cones/mm2. This is easily achievable with medium 2.5
resolution CCD imaging chip of size 5mm x 5mm!
Light
g receptors
p in the retina consist
of two types: rods and cones.
2.6
3
9/15/2009
H
h
L l
The focal lenght (distance bet center of the lens and the retina)
varies
i from
f 17 mm to
t 14 mm (as
( the
th refractive
f ti power off the th lens
l
increases from its minimum to its maximum). Recall that H/L = h/l
In photopic vision alone, the range is about 106 (-2 to 4 in the log scale).
The transition from scotopic to photopic vision is gradual over the
range (0.001, 0.1) millilambert1 (-3 to -1 mL in the log scale).2
•1Johann H. Lambert 1777, German Physicist,
2.8
•2 see http://www.cns.nyu.edu/~msl/courses/2223/notes.2.pdf
4
9/15/2009
The visual system is not able to operate over such a huge range
simultaneously, instead,
simultaneously instead it changes its overall sensitivity.
sensitivity This
phenomena is called brightness adaptation.
For example, if the eye is adapted to brightness
level Ba, the short intersecting curve represents
the range of subjective brightness perceived by
the eye.
I+ΔI1
I+ΔI2
I
The results should move from ”no perceivable change” to ”perceived
change”. The fraction ΔIc/I for which ΔIc produces ”just perceivable
change” is called the Weber ratio. 2.10
5
9/15/2009
Perceived brightness is
NOT a simple function
of intensity.
Example 1: Mach bands
The reflected light intensity from each
strip is uniform over its width and differs
from its neighbors by a constant amount;
nevertheless, the virtual appearance is that
transitions at each bar appear brighter on
the left side and darker on the right side
(scalloped bands).
6
9/15/2009
2.14
http://www.grand-illusions.com/square.htm
7
9/15/2009
http://www.optillusions.com/
http://video.google.com/videoplay?docid=6330601890396636382
&q=nice+video
2.15
Definition:
Light is an electromagnetic radiation which, which by
simulation, arouses a sensation on the visual receptors
making sight possible.
2.16
8
9/15/2009
high frequencies
short wavelegths
2.17
9
9/15/2009
”Illumination”
”Ill i i ” includes
i l d visible
i ibl light,
li h radar,
d
infrared, X-ray, or ultrasound.
”Scene” may be a familiar 3D object,
underground, human internal organs.
2.20
10
9/15/2009
A line sensor
An array sensor
2.21
G
Generating
ti a 2-D
2 D iimage using
i a single
i l sensor.
11
9/15/2009
most
ost flat
at bed sca
scanner
e use linear
ea
sensor strips.
circular sensor strips are used, e.g. in medical and industrial imaging
to produce cross-sectional ”slice” images of 3-D objects.
2.23
Some Digital
Cameras
24 February 2009 – The world’s smallest
and lightest creative D-SLR with built-in image
stabilization has finally arrived! The new Olympus E-620
combines the technical sophistication required by pros with
easy-to-use functions desired by hobbyists. As a result,
ambitious photographers everywhere can now take
creativity to a whole new level. Outfitted with a custom 7-
point Twin autofocus system, the E-620 provides consistent
focus, as well as a generous 12.3 Megapixel High-Speed
Live MOS. Additionally, the Live View technology as well
as the 2.7” free-angle HyperCrystal III LCD make framing
every shot a cinch. In-camera Art Filters entice users to be
artistic by allowing them to apply stylish effects at the
touch of a button. Indeed, the EE-620
620 is everything that
makes Olympus Four Thirds Standard D-SLR cameras
great. The latest addition to the E-System range offers
creative and technological power – all rolled into one. The
new model will be available for purchase at the end of April
2009.
Ref.:
http://www.cameratown.com/news/news.cfm/hurl/id|7238
2.24
12
9/15/2009
Main Features
Ref.:
http://imaging.nikon.com/products/imaging/lineup/digitalcame
ra/coolpix/s630/index.htm
2.26
13
9/15/2009
I t
Integrated
t d Digital
Di it l Camera
C
VGA 640 x 480 resolution 5 mega-pixel, (2592 x 1944 pixels), Carl Zeiss
Three file sizes for images: –optical lens
P=Photo: max 60 kB MPEG-4 VGA –video recording (up to 30 f/s)
H=Higher quality: max 32 kB 8GB hard-disk inside!
L=Lower quality: typical 15 kB
2.27
http://www.compuvisor.com/mike64
di
dicaus.html
ht l
2.28
14
9/15/2009
The Cubik is the world's smallest megapixel digital camera. Its 1.3 million pixel CMOS captures images at 1280x1024.
Its on-board 16mb RAM stores 50 1280x1024 or 99 640x512 low-res pictures. You can even capture a 90 second movie
(no sound, though). Although not as small as the Spyz, the Cubik is small enough to fit unobtrusively into your pocket.
The Cubik also works as a webcam.
http://www.dynamism.com/cubik/index.shtml
2.29
http://www.dynamism.com/spyz/index.sh
tml
2.30
15
9/15/2009
2.31
32
16
9/15/2009
34
17
9/15/2009
35
– Illumination: i(x,y)
– Reflectance: r(x,y)
i(x,y)) < ∞
– 0 < i(
and 0 < r(x,y) < 1
(from total absorption to total reflectance)
36
18
9/15/2009
37
• Lmin ≤ l ≤ Lmax
– Where Lmin: positive
Lmax: finite
38
19
9/15/2009
39
– gray-level
gray level quantization when it refers to the
amplitude.
40
20
9/15/2009
Digital Image
41
42
21
9/15/2009
A Digital Image
43
44
22
9/15/2009
stop
45
46
23
9/15/2009
47
and
– the
h number
b off discrete
di gray levels
l l allowed
ll d ffor
each pixel.
48
24
9/15/2009
49
50
25
9/15/2009
Examples
1 MP (mega-pixel) 1/4 MP
51
Examples
52
26
9/15/2009
Examples
8-bit 7-bit
6-bit 5-bit
53
Examples
4-bit 3-bit
2-bit 1-bit
54
27
9/15/2009
55
28
9/15/2009
57
STOP
58
29
9/15/2009
– Varying N, M numbers
– Varying k (number of bits)
– Varying both
59
How? The original 1024 by 1024 image is subsampled by removing every other60
column
and every other row to produce the 512 by 512 image.
30
9/15/2009
Image Resampling:
To visualize the difference, we up-sample (by duplication)
to the original size of 1024 by 1024.
1024x1024 256x256
32 32
32x32
128x128
61
Example 2: we keep the image size constant at 452x374 and reduce the
number of gray levels L from 256 to 2 (i.e. reduce k from 8 to 1)
iin this
hi 32-level
32 l l image,
i
note the appearance
64 levels of very fine ridge-
like structures in the
areas of smooth gray
levels, e.g. skull.
62
31
9/15/2009
Due to insufficient number of gray levels, this artifact is more visible below
and it is called false contouring.
16
levels
8
4 2
63
64
32
9/15/2009
65
Isopreference [Huang 1965] curves are plotted in the Nk-plane, where each
point represents an image having values of N and k equal to the coordinates of
that point.
Points lying on an isopreference curve correspond to images of equal subjective
quality.
Comments:
1. Isopreference curves tend to shift right and upward (i.e. better image quality)
2. In images with a large amount of details, only a few gray levels are needed
3. In the other two image categories, the perceived quality remained the same
in some intervals in which N was increased but k actually decreased! (more
contrast in the image is perhaps preferred by some people!)
66
33
9/15/2009
• Conclusions:
– Quality of images increases as N & k increase
– Sometimes, for fixed N, the quality improved by
decreasing k (increased contrast)
– For images with large amounts of detail, few gray
levels are needed
67
Nonuniform
Sampling & Quantization
• An adaptive sampling scheme can improve the
appearance of an image, where the sampling would
consider the characteristics of the image.
68
34
9/15/2009
Nonuniform
Sampling & Quantization
• Similarly: nonuniform quantization process
• In this case:
– few gray levels in the neighborhood of
boundaries
– more in
i regions
i off smooth
th gray-level
l l variations
i ti
(reducing thus false contours)
69
Contouring Effect
2.70
35
9/15/2009
iin this
hi 32-level
32 l l image,
i
note the appearance
64 levels of very fine ridge-
like structures in the
areas of smooth gray
levels, e.g. skull.
2.71
Due to insufficient number of gray levels, this artifact is more visible below
and it is called false contouring.
16 8
4 2
2.72
36
9/15/2009
2.73
2.74
37
9/15/2009
Aliasing in2:Digital
Chapter Images:
Digital Image Moiré Patterns
Fundamentals
The effects of aliased frequencies can be seen under the right conditions in the form
of so-called Moiré patterns.
A Moiré pattern caused by a break up of the periodicity is seen below as a 2-D sinusoidal
(aliased) waveform running in a vertical direction.
2.75
2.76
38
9/15/2009
NN
Bili
Bilinear
2.77
39
9/15/2009
Towards Gigapixel
Mega-pel Giga-pel
http://triton.tpd.tno.nl/gigazoom/Delft2.htm
79
Commonly–used Terminology
Neighbors of a pixel p=(i,j)
N8(p)={(i-1,j),(i+1,j),(i,j-1),(i,j+1),
N4(p)={(i-1,j),(i+1,j),(i,j-1),(i,j+1)}
(i-1,j-1),(i-1,j+1),(i+1,j-1),(i+1,j+1)}
Adjacency
40
9/15/2009
2 2 5 2 52 2 4 3 2 3 4 2 2 2 2 2
5 2 1 2 5 3 2 1 2 3 2 1 1 1 2
2 1 0 1 2 2 1 0 1 2 2 1 0 1 2
5 2 1 2 5 3 2 1 2 3 2 1 1 1 2
2 2 5 2 52 2 4 3 2 3 4 2 2 2 2 2
81
Block-based Processing
82
41
9/15/2009
2.83
42