Академический Документы
Профессиональный Документы
Культура Документы
Yao Wang
Polytechnic University, Brooklyn, NY11201
yao@vision.poly.edu
Outline
Video Basics
Video Basics
from [Gonzalez02]
Video Basics
Reflecting sources:
reflect an incoming light (e.g. the color dye, matte surface,
cloth)
perceived color depends on reflected freq (=emitted freqabsorbed freq.)
follows subtractive rule
R+G+B=Black
Yao Wang, 2004
Video Basics
Eye Anatomy
From http://www.stlukeseye.com/Anatomy.asp
Yao Wang, 2004
Video Basics
Camera components
Eye components
Lens
Lens, cornea
Shutter
Iris, pupil
Film
Retina
Video Basics
From
http://www.macula.org/anatomy
/retinaframe.html
Luminance (brightness)
Chrominance
Hue (color tone)
Saturation (color purity)
Yao Wang, 2004
Video Basics
from [Gonzalez02]
Ci = C ( )ai ( )d , i = r , g , b, y
Yao Wang, 2004
Video Basics
Relative sensitivity
80
Blue 20
Luminosity
function
Red
Green
60
40
20
0
400
500
600
700
Wavelength
Ci = C ( )ai ( )d , i = r , g , b, y
Yao Wang, 2004
Video Basics
10
Video Basics
11
Video Basics
12
RGB vs CMY
Video Basics
13
red
Blue
Green
Yao Wang, 2004
Video Basics
14
Amplitude specification:
8 bits for each color component, or 24 bits total for each pixel
Total of 16 million colors
A true RGB color display of size 1Kx1K requires a display buffer
memory size of 3 MB
Video Basics
15
Video Basics
16
Video Basics
17
Video Capture
For natural images we need a light source (: wavelength of the source) ?
.
E(x, y, z, ): incident light on a point (x, y, z world coordinates of the point)
Each point in the scene has a reectivity function.
r(x, y, z, ): reectivity function
Light reects from a point and the reected light is captured by an imaging device.
c(x, y, z, ) = E(x, y, z, ) r(x, y, z, ): reected light.
Video Basics
18
Xx
P
Video Basics
19
3-D
point
X
X
Z
C
y
Camera
center
x=F
x
Y
X
,y=F
Z
Z
y
x
Image
plane
Yao Wang, 2004
2-D
image
Video Basics
20
2fs,1
Nonlinear
processing
Color corrector
Image
enhancer
Interpolation
fs,1
Pre-process
Analog process
Lens
A/D
fs,1
( fs,1)
CCDs
Digital CN
output
2fs,1
13.5 MHz
D/A
Analog CN &
CS output
D/A
Viewfinder
output
Figure 1.2 Schematic block diagram of a professional color video camera. Reprinted from
Y. Hashimoto, M. Yamamoto, and T. Asaida, Cameras and display systems, IEEE (July 1995),
83(7):103243. Copyright 1995 IEEE.
Yao Wang, 2004
Video Basics
21
Video Display
CRT vs LCD
Need three light sources projecting red, green, blue
components respectively
Video Basics
22
Analog Video
Video raster
Progressive vs. interlaced raster
Analog TV systems
Video Basics
23
Raster Scan
Real-world scene is a continuous 3-D signal
(temporal, horizontal, vertical)
Analog video is stored in the raster format
Sampling in time: consecutive sets of frames
To render motion properly, >=30 frame/s is needed
Video Basics
24
Progressive Frame
Horizontal retrace
Field 1
Field 2
Vertical retrace
Video Basics
25
Vertical retrace
from first to second field
Vertical retrace
from second to third field
Blanking level
Black level
Th
White level
Tl
t
2
T
t
(a)
( f )
fl
2fl
3fl
fmax
(b)
Video Basics
26
RGB
--->
YC1C2
Luminance,
Chrominance,
Audio
Multiplexing
Modulation
YC1C2
--->
RGB
DeMultiplexing
DeModulation
Video Basics
27
RGB->YC1C2 transformation
Decorrelating: Y,C1,C2 are uncorrelated
C1 and C2 require lower bandwidth
Y (luminance) component can be received by B/W TV sets
YIQ in NTSC
I: orange-to-cyan
Q: green-to-purple (human eye is less sensitive)
Q can be further bandlimited than I
Video Basics
28
Color Image
I image (orange-cyan)
Y image
Q image (green-purple)
I: orange-cyan
Video Basics
30
Video Basics
31
TV signal bandwidth
Luminance
Maximum vertical frequency (cycles/picture-height)= black and
white lines interlacing
f v,max = Kf 's , y / 2
Maximum horizontal frequency (cycles/picture-width)
f h,max = f v,max IAR
Corresponding temporal frequency (cycles/second or Hz)
f max = f h,max / T 'l = IAR Kf 's , y /2T 'l
For NTSC,
Chrominance
Can be bandlimited significantly
I: 1.5 MHz, Q: 0.5 MHz.
Video Basics
32
Theoretically, for the same line rate, the chromiance signal can
have as high frequency as the luminance signal
However, with real video signals, the chrominance component
typically changes much slower than luminance
Furthermore, the human eye is less sensitive to changes in
chrominance than to changes in luminance
The eye is more sensitive to the orange-cyan range (I) (the color
of face!) than to green-purple range (Q)
The above factors lead to
I: bandlimitted to 1.5 MHz
Q: bandlimitted to 0.5 MHz
Video Basics
33
Video Basics
34
Spectrum Illustration
( f )
Luminance
fl
2fl
3fl
Chrominance
229fl 230fl
fc
(Color subcarrier)
Video Basics
35
Multiplexing of
luminance, chrominance and audio
(Composite Video Spectrum)
6.0 MHz
Luminance
I
I and Q
Audio
4.5 MHz
1.25
MHz
4.2 MHz
3.58 MHz
fc
fp
fa
Color
Audio
subcarrier subcarrier
Picture
carrier
(b)
Yao Wang, 2004
Video Basics
36
cos( 2 f1t )
s1 ( t )
m (t )
LPF
m (t )
LPF
s 2 (t )
s 2 (t )
sin( 2 f1t )
sin( 2 f1t )
QAM modulator
s1 ( t )
QAM demodulator
Video Basics
37
For accurate regeneration of the color sub-carrier signal at the receiver, a color
burst signal is added during the horizontal retrace period
Figure from From Grob, Basic Color Television Principles and Servicing, McGraw Hill, 1975
http://www.ee.washington.edu/conselec/CE/kuhn/ntsc/95x417.gif
Yao Wang, 2004
Video Basics
38
I(t)
LPF
0-4.2MHz
LPF
0-1.5MHz
-/2
Q(t)
BPF
2-4.2MHz
LPF
0-0.5MHz
Gate
Acos(2fct)
Yao Wang, 2004
Video Basics
Composite
video
Color burst
signal
39
Y(t)
Comb Filter
0-4.2MHz
LPF
0-1.5MHz
I(t)
Horizontal
sync signal
Gate
2Acos(2fct)
Phase
comparator
Yao Wang, 2004
-/2
LPF
0-0.5MHz
Q(t)
Voltage
controlled
oscillator
Video Basics
40
Luminance/Chrominance Separation
For better quality, a comb filter can be used, which will filter out
harmonic peaks correspond to chrominance signals.
Show example of comb filter on board
Video Basics
41
Video Basics
42
RGB
--->
YC1C2
Luminance,
Chrominance,
Audio
Multiplexing
Modulation
YC1C2
--->
RGB
DeMultiplexing
DeModulation
Video Basics
43
FM modulator
4.5MHz
G(t)
B(t)
R(t)
Y(t)
LPF
0-4.2MHz
I(t)
LPF
0-1.5MHz
-/2
Q(t)
BPF
2-4.2MHz
Acos(2fct)
Yao Wang, 2004
Video Basics
VSB
To
transmit
antenna
LPF
0-0.5MHz
Gate
Color
burst
signal
44
Gate
VSB
Demodulator
From antenna
Y(t)
Comb Filter
0-4.2MHz
2Acos(2fct)
LPF
0-1.5MHz
I(t)
-/2
LPF
0-0.5MHz
R(t)
YIQ to RGB conversion
BPF, 4.4-4.6MHz
Composite
video
To
speaker
G(t)
To CRT
FM demodulator
B(t)
Q(t)
Voltage
Phase
controlled
comparator
oscillator
Horizontal
sync signal
Video Basics
45
Video Basics
46
Spectrum of Y, I, Q
10
10
10
10
10
10
10
10
Y S pectrum
10
10
10
10
10
10
10
-1
10
10
x 10
I S pectrum
10
10
10
10
10
10
10
-1
10
10
x 10
Q S pectrum
-1
10
x 10
Spectrum of Y, I, and Q components, computed from first two progressive frames of mobilcal, 352x240/frame
Maximum possible frequency is 352x240x30/2=1.26 MHz.
Notice bandwidths of Y, I, Q components are 0.8,0.2,0.15 MHz, respectively, if we consider 10^3 as the cut-off magnitude.
Yao Wang, 2004
Video Basics
47
60
60
60
40
40
40
20
20
20
Gra y Level
80
Gra y Level
Gra y Level
I Waveform
80
-20
-20
-20
-40
-40
-40
-60
-60
-60
-80
0.5
1
Time
1.5
x 10
-4
-80
0.5
1
Time
1.5
x 10
-4
-80
0.5
1
Time
1.5
x 10
Line rate fl =30*240; Luminance fmax=30*240*352/2*0.7=.89 MHz, The color subcarrier fc=225*fl /2=0.81MHz.
M(t)=I(t)*cos(2fct)+Q(t)*sin (2fct)
Yao Wang, 2004
Video Basics
48
-4
10
10
10
10
10
10
10
I S pectrum
10
10
10
10
10
10
10
-1
10
10
x 10
Q S pectrum
10
10
10
10
10
10
10
-1
10
10
x 10
-1
10
x 10
Video Basics
49
250
250
200
200
150
150
Gray Level
Gray Level
Y Waveform
100
100
50
50
0.5
1
Time
1.5
x 10
-4
0.5
1
Time
1.5
x 10
-4
Waveform of the Y signal Y(t) and the composite signal V(t)=Y(t)+M(t). 1 line
Yao Wang, 2004
Video Basics
50
10
10
10
10
Y S pectrum
10
10
10
10
10
12
x 10
10
5
10
12
x 10
Video Basics
51
10
Chrominance
peaks
Luminance peaks
10
10
10
10
10
10
Luminance peaks
10
10
10
15
x 10
7.5
8.5
9
x 10
Video Basics
52
Composite Signal as Y
On the right is what a B/W receiver will see if no filtering is applied to the baseband video signal
Video Basics
53
Frequency response
Ma gnitude (dB)
50
0.6
0.5
-50
0.4
-100
-150
6
8
Fre que ncy (Hz)
10
0.3
12
x 10
P has e (degrees )
0.2
-500
0.1
-1000
-1500
6
8
Fre que ncy (Hz)
10
12
-0.1
x 10
10
15
20
25
f_LPF=30*240/2*150=0.54MHz; fir_length=20;
LPF=fir1(fir_length,f_LPF/(Fs/2));
Yao Wang, 2004
Video Basics
54
Original Y
Recovered Y
On the right is what a B/W receiver will see if a lowpass filter with cutoff frequency at about 0.75 MHz is
applied to the baseband video signal. This is also the recovered Y component by a color receiver if the
same filter is used to separate Y and QAM signal.
Y(t)=conv(V(t),LPF(t))
Yao Wang, 2004
Video Basics
55
Y Waveform Comparison
Compos ite Waveform
250
250
200
200
200
150
150
150
Gray Level
250
Gray Level
Gray Level
Y Waveform
100
100
100
50
50
50
0.5
1
Time
1.5
x 10
-4
0.5
1
Time
Video Basics
1.5
x 10
-4
0.5
1.5
Time
x 10
56
-4
80
80
60
60
40
40
20
20
Gray Level
Gray Level
QAM Waveform
-20
-20
-40
-40
-60
-60
-80
0.5
1
Time
1.5
x 10
-4
-80
0.5
1
Time
1.5
x 10
-4
M(t)=V(t)-Y(t)
Yao Wang, 2004
Video Basics
57
Modulated signal:
M(t)=I(t)*cos(2fct)+Q(t)*sin (2fct)
Demodulated signal:
I(t)=2*M(t)*cos(2fct), Q(t)=2*M(t)*sin(2fct)
I(t) contains I(t) at baseband, as well as I(t) at 2fc and Q(t) at 4fc
A LPF is required to extract I(t)
cos( 2 f1t )
cos( 2 f1t )
s1 ( t )
m (t )
LPF
m (t )
LPF
s 2 (t )
s 2 (t )
sin( 2 f1t )
sin( 2 f1t )
QAM modulator
Yao Wang, 2004
s1 ( t )
QAM demodulator
Video Basics
58
Impulse response
Magnitude (dB)
50
0.14
0.12
-50
0.1
-100
P has e (degrees )
0.16
6
8
Frequency (Hz)
10
12
x 10
0.08
0.06
-200
0.04
-400
0.02
-600
-800
6
8
Frequency (Hz)
10
-0.02
12
x 10
10
15
20
25
f_LPF=0.2MHz; fir_length=20;
LPF=fir1(fir_length,f_LPF/(Fs/2));
Yao Wang, 2004
Video Basics
59
Demodulation+LP F I
80
60
60
60
40
40
40
20
20
20
Gray Level
80
Gray Level
Gray Level
Original I
80
-20
-20
-20
-40
-40
-40
-60
-60
-60
-80
0.5
1
Time
1.5
x 10
-4
-80
0.5
1
Time
1.5
x 10
I(t)=2*M(t)*cos(2fct)
Yao Wang, 2004
Video Basics
-4
-80
0.5
1
Time
1.5
x 10
I(t)=conv(I(t),LPF(t))
60
-4
10
10
10
10
I S pectrum
10
10
10
10
10
10
x 10
10
10
10
10
10
10
x 10
Video Basics
10
x 10
61
original I
original Q
50
50
100
100
150
150
200
200
100
200
300
100
Recovered I
50
100
100
150
150
200
200
200
300
Recovered Q
50
100
200
300
100
Video Basics
200
300
62
Video Basics
63
Parameters
NTSC
PAL
SECAM
59.95 (60)
50
50
Line Number/Frame
525
625
625
15,750
15,625
15,625
Color Coordinate
YIQ
YUV
YDbDr
4.2
5.0/5.5
6.0
1.5(I)/0.5(Q)
1.3(U,V)
1.0 (U,V)
3.58
4.43
4.25(Db),4.41(Dr)
Color Modulation
QAM
QAM
FM
Audio Subcarrier
4.5
5.5/6.0
6.5
6.0
7.0/8.0
8.0
Video Basics
64
From http://www.stjarnhimlen.se/tv/tv.html#worldwide_0
Yao Wang, 2004
Video Basics
65
Digital Video
Digital video by sampling/quantizing analog video
raster BT.601 video
Other digital video formats and their applications
Video Basics
66
Video Basics
67
858 pels
864 pels
Active
Area
122
pel
16
pel
576 lines
720 pels
625 lines
480 lines
525 lines
720 pels
Active
Area
132
pel
525/60: 60 field/s
12
pel
625/50: 50 field/s
Video Basics
68
Video Basics
69
4:4:4
For every 2x2 Y Pixels
4 Cb & 4 Cr Pixel
(No subsampling)
4:2:2
For every 2x2 Y Pixels
2 Cb & 2 Cr Pixel
(Subsampling by 2:1
horizontally only)
4:1:1
For every 4x1 Y Pixels
1 Cb & 1 Cr Pixel
(Subsampling by 4:1
horizontally only)
Cb and Cr Pixel
Y Pixel
4:2:0
For every 2x2 Y Pixels
1 Cb & 1 Cr Pixel
(Subsampling by 2:1 both
horizontally and vertically)
Video Basics
70
Frame Rate
(Hz)
24P/30P/60P
24P/30P/60I
265/332/664
597/746/746
60I/50I
60I/50I
249
166
124
30
37
9.1
Y Size
Color
Sampling
4:4:4
4:2:2
Video Basics
71
Video Terminology
Component video
Composite video
Convert RGB to YIQ (YUV)
Multiplexing YIQ into a single signal
Used in most consumer analog video devices
S-video
Y and C (QAM of I and Q) are stored separately
Used in high end consumer video devices
Video Basics
72
Homework
Reading assignment:
Chap. 1.
Problems:
Prob. 1.5.
Prob. 1.6.
Prob. 1.7.
Prob. 1.8.
Prob. 1.9.
Prob. 1.10
Prob. 1.11
Prove mux/demux with QAM will get back the original two
signals
Video Basics
73