reset password
Author Message
cbort
Posts: 95
Posted 16:14 May 30, 2011 |

"For each dynamic block d, find the closest static block c in the nth frame and replace d with c. After processing all dynamic blocks, save the output into output1.ppm"

For part 2 is block C supposed  to be within the [-12 : 12] search area of block d

Last edited by cbort at 16:15 May 30, 2011.
kknaur
Posts: 540
Posted 16:15 May 30, 2011 |

she mentioned that "closest block" is up to us to define there is no criteria as far as the hw is concerned on what should be the closest block since part of the homework is for you to come up with what that means.

eykang
Posts: 95
Posted 17:17 May 30, 2011 |
c c c c c
c c c c c
c d d d c
c d d d c
c d d d c

 

Use the Euclidean distance to find the closest 'c' block.

Assume that the target macro blocks are marked as shown above after the motion compensation processing, 

For the dynamic block d at 5th row and 3rd column, its closest static block c should be either c at the 5th row and 1st column or c at the 5th row and 5th column.

Notice that this has nothing to do with search area that you used for finding motion vector.

Last edited by eykang at 17:17 May 30, 2011.
cbort
Posts: 95
Posted 17:56 May 30, 2011 |

Oh, ok thanks. I thought you meant closest in appearance (smallest MSE)