Ch2 Basic Processing
Ch2 Basic Processing
Computer Vision
Course
School of Informations and
Communication Technology
Computer Vision
Chapter 2: Image formation, acquisition and
digitization
Computer Vision Group
School of Information and Communications Technology
1
2/22/24
Content
• Image formation
• Human vision
• Image formation
• Acquisition and digitization: Digital camera
• Imaging sensor
• 2D signal and sampling
• Color:
• Primary color, additive/ subtractive color, color spaces
• Digital image representation and formats
Image formation
2
2/22/24
The Eye
Cones
cone-shaped
less sensitive
operate in high light
color vision
Rods
rod-shaped
highly sensitive
operate at night
gray-scale vision
James Hays
3
2/22/24
100
S M L
50
WAVELENGTH (nm.)
4
2/22/24
Tetrachromatism
Bird cone
responses
James Hays
Image formation
10
5
2/22/24
What is light?
11
12
6
2/22/24
o The scene is
illuminated by a
single source.
o The scene reflects
radiation towards
the camera.
o The camera senses
it via CCD/ CMOS
13
14
7
2/22/24
Digital camera
• Image acquisition:
• Optical system, aperture (capture), shutter
• Imaging sensor: CCD/ CMOS sensor camera consists of a
array of photodiodes. Each cell in the is light-sensitive diode
that converts photons to electrons.
• 2D sensed signal of image, video
• Digitization (ADC): Sampling and Quantization
• Sampling the 2D sensed signal create the samples or pixels
• Quantizing the sample values as the integer values of pixels
• Processing (DSP- Digital Signal Processing):
• Cameras perform a variety of digital signal processing
operations to enhance the image before compressing and storing
the pixel values in standard format file.
15
16
8
2/22/24
17
18
9
2/22/24
2D
19
Digital image
20
10
2/22/24
21
22
11
2/22/24
Color spaces
• Color spaces; different types of color modes
• Color represented by vector of components
v Red, Green, Blue (RGB)
v Hue, Saturation, Value (HSV)
v Luminance, chrominance (YUV, LUV)
v XYZ
• Color convert: RGB – YUV
Y = 0.299R + 0.587G + 0.114B
U = 0.493 (B - Y) ; V = 0.877 (R - Y)
23
M µu s½c
Blue RGB
Magenta Black (0, 0, 0)
Red (255, 0, 0)
white Green (0, 255, 0)
Cyan Yellow (255, 255, 0)
Blue (0, 0, 255)
Red Magenta (255, 0, 255)
Cyan (0, 255, 255)
White (255, 255, 255)
24
12
2/22/24
25
0,1,0
R=1
(G=0,B=0)
1,0,0 G=1
(R=0,B=0)
0,0,1
26
13
2/22/24
27
28
14
2/22/24
29
30
15
2/22/24
31
32
16
2/22/24
33
34
17
2/22/24
Fig.: Density Plot showing the variation of values in color channels for
2 similar bright images of yellow color
Source: Vikas Gupta, Learn OpenCV
CV Group – School of Information and Communication and Technology 35
35
• Different illumination:
36
18
2/22/24
• Different illumination:
37
• Different illumination:
• RGB space: the variation in the value of channels is very high
• HSV: compact in H. Only H contains information about the
absolute color è a choix
• YCrCb, LAB: compact in CrCb and in AB
• Higher level of compactness is in LAB
• Convert to other color spaces (OpenCV):
• cvtColor(bgr, ycb, COLOR_BGR2YCrCb);
• cvtColor(bgr, hsv, COLOR_BGR2HSV);
• cvtColor(bgr, lab, COLOR_BGR2Lab);
38
19
2/22/24
Image representation
Continuous Images as functions
39
2D
40
20
2/22/24
41
42
21
2/22/24
43
44
22
2/22/24
45
THANK YOU !
23