SLIDE 1
Exercise 4a: Padding of Input Image
Main Goal: The image codec should work with all combinations of sizes and block sizes Encoder Header: Original image size W ×H and block size B Calculate image dimension W ′×H′ used for coding
Both W ′ and H′ are multiples of block size B
Fill missing samples with suitable values
Suggestion: Constant border extension (see figure)
Decoder Read image size W ×H and block size B from header Calculate image dimension W ′×H′ used for coding Remove added samples before outputting the reconstructed image of size W ×H
s[ x, y ] = s[ W −1, y ] s[ x, y ] = s[ x, H−1 ]
Heiko Schwarz (Freie Universität Berlin) — Image and Video Coding