hw10sol

# hw10sol - MB in the current frame. 3. The motion vector for...

This preview shows pages 1–2. Sign up to view the full content.

Homework 10 Problem 1. The first coefficient 139 is called the DC coefficient, and is not scanned together with all the rest (AC) coefficients. Then the zig-zag scanning of the AC coefficients are: 0, 48, -2, 1, 0, 0, -1, 0, 9, 0, 0, 1, 0, -1, 0, 0, … The run-length coding of this sequence is (1, 48), (0, -2), (0, 1), (2, -1), (1, -9), (2, 1), (1, -1), EOB In JPEG, these symbols will then be coded through Huffman coding - - - - 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 0 0 0 0 0 1 0 2 0 0 0 0 0 1 1 48 0 0 0 1 0 0 0 139

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Problem 2: Note: 1.We do not partition the reference frame, we only partition the current frame into macro-blocks (MBs). 2. When we looking for the best matched block in reference frame for a particular MB in the current frame, the best matched block can be any block with size of an MB in the reference frame, it does not have to align with any
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: MB in the current frame. 3. The motion vector for an MB may not be unique, especially in our case where images are binary. A possible set of motion vectors are: (horizontal displacement <+ for → > , vertical displacement <+ for ↓> ) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (-2,0) (0,0) (-4,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (1,-3) (1,-3) (0,0) (0,0) (0,0) (9,-4) (0,0) (0,0) (1,-3) (1,-3) (0,0) (0,0) (0,0) (0,0) (0,0) (0,1) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (-1,-3) (-1,-3) (0,0) (1,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (-2,0) (0,-2) (0,-2) (1,-3) (0,0) (-1,0) This way the residual will be all zeros!...
View Full Document

## This homework help was uploaded on 04/05/2008 for the course EE/CPE 462 taught by Professor Prof.hongman during the Spring '07 term at Stevens.

### Page1 / 2

hw10sol - MB in the current frame. 3. The motion vector for...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online