Professional Documents
Culture Documents
Master:
Prof. Hashemi
By:
Amir Shahrokhi
1
Progress
What
Download Papers about ME Specially Block Matching Survey Papers and Their References
What
will be done:
Outline
Fast
Search Method 2-D Logarithmic Search 3-Step Search Conjugate Direction Search Diamond Search
Introduction
Temporal
threshold for difference in pixel intensity from previous frame If less than threshold Send nothing If more than threshold Send position & intensity difference Advantage: Easy to implement, Low complexity Disadvantage: Low compression when rapid changes In low bit-rates may cause scene cuts Better way: Motion Compensated Coding
Introduction (Continue)
Motion
Compensated Coding
motion of current frame respect to previous Calculate difference between motion compensated & current frames Code motion vectors and differences as this frame To have better compression we need to good motion estimation
Outline
Fast
Search Method 2-D Logarithmic Search 3-Step Search Conjugate Direction Search Diamond Search
Block Matching
Divide current frame to small rectangular blocks Motion of each block is assumed to be uniform Find the best match for each block in previous frame Calculate motion vector (MV) between current block and its counterpart in previous frame Typical size for blocks: 16x16 pixels Maximum movement: w: typically 8, 16 or 32 Matching Criteria:
Mean Absolute Error (MAE) Mean Square Error (MSE) Sum of the Squared Error (SSE)
Block Matching
Search
Rectangle with the same coordinate as current block in current frame, extended by w pixels in each directions
q+2w w p+2w q
w
w
Block Matching
Full
Search
All candidates within search window are examined (2w+1)2 positions should be examined Advantage: Good accuracy, Finds best match Disadvantage: Large amount of computation: (2w+1)2 matches, 16x16 MAE for each match Impractical for real-time applications In order to avoid this complexity, we should reduce search positions Fast Block Matching Algorithms
to Full Search
2 4
1 4 4
4
4
2
4 3
4
4
11
1 2 2 3 3 3 3 2 3 1 3 3 3 2 2 2 2 2
12
to 3SS
Po, Ma The idea is same as N3SS, a hybrid of 3SS and 2DL, (For w=8) Central point and 8 surrounding with distance = 2 If best match on center, distance = 1 select 8 new points and end else select best match as new center with previous distance (2) If following step repeated 3 times, distance=1, select 8 new points and end 2 to 4 steps 17-27 search points, Less search points on average Better MSE than 3SS & less search points than N3SS, Better prediction
13
14
to CDS
15
DS Example
2 1 1 1 1 1 1 1 1 2 4 1 3 4 2 4 3 3 4 3 3
17
References
FPGA Implementation of a Novel, Fast Motion Estimation Algorithm for Real-Time Video Compression, FPGA 2001, CA. USA, S. Ramachandran and S. Srinivasan, Feb. 2001 Image & Video Compression for Multimedia Engineering, Y.Q. Shi and H. Sun, 2000 A New Diamond Search Algorithm for Fast Block-Matching Motion Estimation, IEEE Trans. Image Processing, S. Zhu and K. K. Ma, Feb. 2000 A Novel Four-Step Search Algorithm for Fast Block Motion Estimation, IEEE Trans. Circuits System, Video Technology, L. M. Po and W. C. Ma, June 1996 Successive Elimination Algorithm for Motion Estimation W. Li and E. Salari IEEE Trans. , Jan. 1995 A New Three-Step Search Algorithm for Block Motion Estimation, IEEE Trans. Circuits System, Video Technology, R. Li, B. Zeng, and M.L. Liou, Aug. 1994 Predictive Coding Based on Efficient Motion Estimation, IEEE Trans. on communications, R. Srinivasan, K.R. Rao, Aug. 1985 Motion Compensated Inter-Frame Coding for Video-Conferencing, T. Koga, K. Iinuma, A. Hirano, Y. Iijima, and T. Ishiguro, Proc. NTC81, Nov. 1981 Displacement Measurement and its Applications, IEEE Trans. on communications, J.R. Jain and A.K Jain, Dec. 1981
18
Any Question?
19