Professional Documents
Culture Documents
n Motion-compensated prediction
n Motion-compensated hybrid coding
n Power spectral density of the motion-compensated
prediction error
n Rate-distortion analysis
n Loop filter
n Motion compensation with sub-pel accuracy
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 1
Motion-compensated prediction
previous frame
stationary ∆t
background
current frame
x
time t
y
moving
object
dx
„Displacement vector“ d shifted
y object
Prediction for the luminance signal S(x,y,t) within the moving object:
1
Motion-compensated prediction: example
Previous frame Current frame
Video Channel
signal
Intraframe
S
e DCT coder
- Intraframe
Decoder
Motion
compensated
predictor Decoder
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 4
2
Motion-compensated hybrid decoder
Channel
reconstructed
Intraframe video signal
Decoder
Motion
compensated
predictor
side information
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 5
intraframe
decoder
e‘
motion s‘
compensated
predictor
displacement estimate
dx ∆ x
true displacement d + ∆ displacement error
y y
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 6
3
Analysis of the motion-compensated prediction error
Motion-compensated signal
c(x ) = s(x − ∆ x ) − n( x )
Prediction error
x
c(x) s(x)
Current
frame
Displacement d x Displacement error ∆ x
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 7
( )
= 2Φ ss (ω ) 1− Re {e − jω∆ x } + Φnn (ω )
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 8
4
Analysis of m.c. prediction error (cont.)
What is P( ω )? P (ω ) = E {e − }
jω ∆ x
n
= ∫ {
p ∆ x (∆ )e − jω ∆ d∆ = F p ∆ x (∆ x ) }
−∞
Fourier
Fourier transform
transform of
of the
the displacement
displacement error
error pdf!
pdf!
( )
Φ ee (ω x ,ω y ) = 2Φ ss (ω x ,ω y ) 1 − Re{P(ω x ,ω y )} + Φ nn (ω x ,ω y )
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 9
π
0
frequency ω x
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 10
5
R-D function for MCP with integer-pixel accuracy
Minimum bit-rate for given SNR
n (∆ x , ∆ y ) T assumed
uniformly distributed
between
1
∆x = ± pel
2
1
∆ y = ± line ~0.7 bpp
2
n Gaussian signal model 3
−
ω x2 + ω 2y 2
Φ ss (ω x , ω y ) = A 1 +
ω 02
n Typical parameters for CIF
resolution (352 x 288
pixels)
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 11
n p(∆ x , ∆ y ) isotropic
Gaussian pdf with variance σ
2
3
−
ω x2 +ω 2y 2
Φss (ω x ,ω y ) = A1+
ω02
n
n Typical parameters for CIF
resolution (352 x 288 pixels)
n Minimum bit-rate for
SNR = 30 dB
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 12
6
Model of MCP hybrid coder with loop filter
e R-D optimal
intraframe
luminance - encoder
signal S
intraframe
decoder
spatial
filter
F
motion
compensated
predictor
displacement estimate
dx ∆ x
true displacement d + ∆ displacement error
y y
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 13
x
c(x) s(x)
Current
frame
Displacement d x Displacement error ∆ x
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 14
7
Spatial power spectrum of m.c. prediction error
with loop filter
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 15
∗ Φ ss ( Λ )
Fopt ( Λ) = P
12(Λ
3) ⋅ Φss4
1 Λ4
(4 )2+4 Φ nn4(4
Λ
3)
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 16
8
Required accuracy of motion
compensation with loop filter
n p(∆ x , ∆ y ) isotropic Gaussian pdf with variance σ 2
n Minimum bit-rate for SNR = 30 dB
~0.8 bpp
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 17
Experimental evaluation of
sub-pixel motion compensation
n ITU-R 601 TV signals, 13.5 MHz sampling rate, interlaced,
blockwise motion compensation with blocksize16x16
Zoom Voiture
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 18
9
Influence of noise on the
performance of MCP
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 19
500
Bit Rate [kbps]
400
Intra mode
300 only
Integer-pel
accuracy
200
1/2-pel
100 accuracy
0
24 30 36
Simulation details: PSNR [dB]
Foreman, QCIF, SKIP=2
Q=4,5,7,10,15,25
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 20
10
Summary: motion-compensated coding
n Motion-compensated prediction exploits similarity of
successive frames of a video sequence.
n Hybrid coder combines motion compensation and spatial
2D coding.
n Power spectral density of motion-compensated prediction
error is flat.
n Loop filter improves the prediction.
n Maximum gain by motion compensation with integer-pel
accuracy ~0.8 bit/sample.
n Sub-pixel accuracy of motion compensation can improve
prediction
n “Noise” in the image signal limits the accuracy of motion
compensation.
Bernd Girod: EE368b Image and Video Compression Motion Compensation no. 21
11