Week 1
Week 1
3 4
Structure of Human Eye • Retina contains light receptors: Cones & rods
– Cones:
• Lens: • 6 to 7 million,
– focuses light on retina
• located mainly in central part of retina
– Contains 60% to 70% water (fovea)
– Absorbs 8% of visible light • Sensitive to color,
– High absorption in infrared and ultraviolet (can cause damage to eye) • Can resolve fine details because each
• Retina: the inner most layer, covers the posteriori portion of one is connected to its nerve
eye • Cone vision: photopic or bright-light
• When eye is properly focused, light of an object is imaged on – Rods:
the retina • 75 to 150 million,
• No color vision, responsible for low-
• Light receptors are distributed over the surface of retina light vision,
• Distributed a wide region on the retina
• Rod vision: scotopic or dim-light
5 6
1
Human Eye Image formation in the eye
• Blind spot: a region of retina without receptors, optic nerves • Lens is flexible
go through this part • Refraction of lens is controlled by its thickness
• Fovea: a circular area of about 1.5 mm in diameter • Thickness is controlled by the tension of muscles connected to
• A comparison between eye (fovea) and a CCD camera: the lens
– Density of cones in fovea: 150,000 /mm 2 • Focus on distance objects: lens is relatively flattened,
– Number of cones: 337,000 refractive power is minimum
– A medium resolution CCD chip has the same number of elements in a
• Focus on near objects: lens is thicker, refractive power is
5mm x 5mm area.
maximum
• Perception takes place by excitation of receptors which
transform radiant energy into electrical impulses that are
decoded by the brain.
7 8
I+DI
9 10
11 12
2
Intensity & Brightness Image sensing and acquisition
• Mach Band • If a sensor can be developed that is capable of detecting
effect: energy radiated by a band of the EM spectrum, we can image
Although the events in that band.
shades are • Image is generated by energy of the illumination source
constant,
overshoot and reflected (natural scenes) or transmitted through objects (X-
undershoot are ray)
observed near • A sensor detects the energy and converts it to electrical
the transition signals
boundary. • Sensor should have a material that is responsive to the
particular type of energy being detected.
13 14
15 16
17 18
3
Line scan array Sensor arrays
• This is the arrangement used on digital cameras
• Typical sensor for these cameras is the CCD array (Charge
Coupled Devices)
• Since the sensor is two dimensional a complete image can be
obtained
• Motion is not necessary
19 20
(x,y): coordinates
Total absorption: r(x,y)=0
Total reflection: r(x,y)=1
21 22
23 24
4
Effects of Reducing Spatial Resolution Effects of Reducing Spatial Resolution
25 26
27 28
29 30
5
Zooming and Shrinkage Zooming
• Zooming: increasing the resolution (size) of an image • A simple way of zooming which works for increasing the size
• Shrinkage: decreasing the resolution of an image of an image by integer numbers is pixel replication
• Example of zooming: we have an image of 500x500 pixels • Visualize assignment in zooming: the enlarged image is
and we want to enlarge it to 750x750 placed on the original image
• Zooming has two steps: creation of new pixel locations and • Gray level of each pixel in the enlarged image is set to the
the assignment of gray levels to those locations gray-level of its nearest pixel in the original image
31 32
Zooming Shrinkage
• A more sophisticated way of accomplishing gray-level • Shrinkage by an integer number can be done by deleting some
assignment is bilinear interpolation of the rows and columns of the image
• v(x’,y’)=ax’+by’+cx’y’+d • Shrinkage by an noninteger factor can be done as the inverse
• The four coefficients are determined from the four equations of zooming
in four known (four nearest neighbors of the point (x’,y’))
33 34
35 36
6
Relationship between pixels Basic relationships between pixels
• Neighbors • A pixel p at coordinates (x,y) has four horizontal and vertical
• Adjacency neighbors:
• Path N4(P)={(x+1,y), (x-1,y),(x,y+1),(x,y-1)}
• Connectivity • The four diagonal neighbors of P
• Region ND(P)={(x+1,y+1), (x-1,y-1),(x-1,y+1),(x+1,y-1)}
• Boundary • The eight point neighbors of P
• Distance N8(P)=N4(P)U ND(P)
37 38
Adjacency Adjacency
• Two pixels are adjacent if they are neighbors and their gray • 4-adjacency: Two pixels p and q with values from V are 4-
levels are similar adjacent if q is in N4(p)
• V: set of gray levels • 8-adjacency: Two pixels p and q with values from V are 8-
• Similar gray level means that the gray levels of both pixels adjacent if q is in N8(p)
belong to set V • 4-adjacency: broken paths
• Exp: • 8-adjacency: multiple paths
– Binary images: V={1}
– Gray level image: V={32,33, …,63,64}
0 1 1 0 1 1 0 1 1
0 1 0 0 1 0 0 1 0
0 0 1 0 0 1 0 0 1
39 40
Adjacency Path
• m-adjacency: Two pixels p and q with values from V are m- • A path from pixel p with coordinates (x,y) to pixel q with
adjacent if: coordinates (s,t) is a sequence of distinct pixels with
q is in N4(p) or coordinates (x0,y0),(x1,y1),…,(xn,yn) where (x0,y0)=(x,y),
q is in ND(p) and the intersection of N4(p) and N4(q) has no pixels with (xn,yn)=(s,t), and points (xi,yi) and (xi-1,yi-1) are adjacent for
values in V. 1 i n
• n is the length of the path
q q • We can have 4-, 8-, or m-paths depending on the type of
0 1 1 0 1 1 0 1 1 adjacency specified.
0 1 0 0 1 0 0 1 0
0 0 1 0 0 1 0 0 1
p p
41 42
7
Connectivity Region
• S: a subset of pixels in an image • R: a subset of pixels in an image
• Two pixels p and q are said to be connected in S if there exists • R is called a region if every pixel in R is connected to any
a path between them consisting entirely of pixels in S other pixel in R
• We can have 4-, 8-, or m-connectivity depending on the type • Boundary (border or contour) of a region: set of pixels in the
of path specified. region that have one or more neighbors that are not in R
0 1 1 0 0 1 1 0
0 1 1 1 0 1 1 1
0 0 1 0 0 0 1 0
0 0 0 0 1 0 0 0
43 44
45 46
0 0 1 0 0 1
1 1 0 0 1 0
1 0 0 1 0 0
Dm=3 Dm=2
47 48
8
Line scan arrays Line scan arrays
• While register is read, image capturing should stop
• A row of photosites forms the imaging device • Readout speed can be increased using more than one register
• Charges of photosites are transferred to a readout register • A 2-D image is formed by relative motion between the scene and sensor
• Readout register works similar to a shift register
Transport register
Gate
Output
N Photosites 2 1
Output
N Photosites 2 1
Gate
Gate
Readout register
Transport register
49 50
51 52