- T. Wiegand / B. Girod: EE398A Image and Video Compression
Motion estimation no. 1
Motion Estimation for Video Coding
- Motion-Compensated Prediction
- Bit Allocation
- Motion Models
- Motion Estimation
- Efficiency of Motion Compensation Techniques
Motion Estimation for Video Coding Motion-Compensated Prediction - - PowerPoint PPT Presentation
Motion Estimation for Video Coding Motion-Compensated Prediction Bit Allocation Motion Models Motion Estimation Efficiency of Motion Compensation Techniques T. Wiegand / B. Girod: EE398A Image and Video Compression Motion
Motion estimation no. 1
Motion estimation no. 2
Intra-Frame Decoder Motion- Compensated Predictor Control Data DCT Coefficients Motion Data Intra/Inter Coder Control Decoder Motion Estimator Intra-Frame DCT Coder
, , [ t y x s ] , , [ t y x u ] , , [ ' t y x s ] , , [ ' t y x u ] , , [ ˆ t y x s
Motion estimation no. 3
Prediction for the luminance signal s[x,y,t] within the moving object:
Moving
Displaced
time t
x y
Previous frame Current frame Stationary background
y x
y x
Motion estimation no. 4
Referenced blocks in frame 1 Difference between motion- compensated prediction and current frame u[x,y,t] Frame 1 s[x,y,t-1] (previous) Frame 2 with displacement vectors Accuracy of Motion Vectors Frame 2 s[x,y,t] (current) Partition of frame 2 into blocks (schematic) Size of Blocks
Motion estimation no. 5
y x y y x x
Motion Model
: location in previous image : location in current image : vector of motion coefficients : displacements
Motion estimation no. 6
y x
1 1
i N i i y i N i i x
1
j M j j
Motion estimation no. 7
u m u m
Motion estimation no. 8
m m m
Motion estimation no. 9
y x
y x 1 2 2 1
y x 2 1 2 1
x x 5 2 6 2 2 3 1 5 2 6 2 2 3 1
1 1
i N i i y i N i i x
Motion estimation no. 10
50 100 150
50 100 150 x y
50 100 150
50 100 150 x y
50 100 150
50 100 150 x y
50 100 150
50 100 150 x y
translation scaling sheering
1
3
Motion estimation no. 11
50 100 150
50 100 150 x y
50 100 150
50 100 150 x y
50 100 150
50 100 150 x y
50 100 150
50 100 150 x y
2 2x
2 6y
5
Motion estimation no. 12
Displace frame difference Horizontal and vertical gradient of image signal S
y x y x
1 1 2
By y Bx x
Motion estimation no. 13
3 2 1 3 2 1
3 2 1 3 2 1
By y Bx x b b b a a a
1 1 2 , , , , ,
3 2 1 3 2 1
3 2 1 3 2 1
Motion estimation no. 14
search range in previous frame block of current frame
Motion estimation no. 15
Block of pixels is selected as a measurement window Measurement window is compared with a shifted block
to determine the best match
Motion estimation no. 16
. . . process repeated for another block.
Motion estimation no. 17
2 1 1
y By y Bx x x y x
1 1
y By y Bx x x y x
Motion estimation no. 18
dx dy
Motion estimation no. 19
Motion estimation no. 20
Motion estimation no. 21
p y K y B x x y x K
x
1 1
y y x K
min
y x m y x K
min
y x m y x K
2 / 1
y
Motion estimation no. 22
measure than previous best result
n B k k B k k
n
1 1
n n n
B k k B k k
1 1 n
Motion estimation no. 23
Motion estimation no. 24
Start with large diamond pattern at (0,0) If best match lies in the center
proceed with small diamond If best match does not lie in the center of large diamond, center large diamond pattern at new best match
Motion estimation no. 25
Motion estimation no. 26
d d
x y
Motion estimation no. 27
x y
Motion estimation no. 28
Motion estimation no. 29
Motion estimation no. 30
Variable block size (16x16 – 8x8) (H.263, 1996) + quarter-pel motion compensation (MPEG-4, 1998) Variable block size (16x16 – 4x4) + quarter-pel + multi-frame motion compensation (H.264/AVC, 2003) Intraframe DCT coding (JPEG, 1990)
Frame Difference coding (H.120 1988) Conditional Replenishment (H.120)
Half-pel motion compensation (MPEG-1 1993 MPEG-2 1994) Integer-pel motion compensation (H.261, 1991)
Motion estimation no. 31
Integer-pel motion compensation (H.261, 1991) Variable block size (16x16 – 8x8) (H.263, 1996) + quarter-pel motion compensation (MPEG-4, 1998) Variable block size (16x16 – 4x4) + quarter-pel + multi-frame motion compensation (H.264/AVC, 2003) Intraframe DCT coding (JPEG, 1990)
Half-pel motion compensation (MPEG-1 1993 MPEG-2 1994)
Frame Difference coding (H.120 1988) Conditional Replenishment (H.120)
Motion estimation no. 32
Motion estimation no. 33