1 / 16

Image Compression

Image Compression. Signals and image processing by computer Winter 2012-13 Yael Erez. Binary Images. Bit Map Very simple Representation size = image size Large memory. Coding Scheme. image. code. Encode. code. image. Decode. Binary Images Encoding. Run Length

addo
Download Presentation

Image Compression

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Image Compression Signals and image processing by computer Winter 2012-13 Yael Erez

  2. Binary Images • Bit Map • Very simple • Representation size = image size • Large memory

  3. Coding Scheme image code Encode code image Decode

  4. Binary Images Encoding • Run Length • Very efficient for some images. Less efficient for others.

  5. Binary Images Encoding • Chain Code • Begin from some pixel on the contour and decode directions (clockwise). (interior is full). • Small code, but complicated to decode and encode • Same image – several codes 1 2 3 1 2 4 0 0 5 7 3 6

  6. Entropy • Image x with L gray levels, and normalized histogram values • Measure of uncertainty (surprise): • Entropy: Entropy=7.4451

  7. Entropy • Uniform distribution: • P(1)=1

  8. Entropy Encoding • Symbol 0 1 2 3 • Code 00 01 10 11 • Mean code length 2 bits/sample • H(x) 0.5 0.3 0.1 0.1 • Entropy 1.6855 bits/sample • How can we reduce the mean code length?

  9. Huffman Coding • Symbol: 0 1 2 3 • H(x) 0.5 0.3 0.1 0.1 • Entropy 1.6855 bits/sample • Huffman 0 10 110 111 • Huffman mean code length 1.7 bits/sample • Prefix code

  10. Huffman Binary Tree • Create dictionary: Symbol prob code 0 0 0 0.5 0 10 1 0.3 1 0 110 2 0.1 1 1 1 0.5 111 3 0.1 0.2 • How can we decode?

  11. Prediction • Pixels are not independent! Entropy=2.6276 • Huffman encoding yields 2.6466 bits/sample

  12. Differential Encoding • Very sensitive to errors! Compressed image image Compressed image image Decoding Encoding - + Prediction Prediction

  13. Summary Code length Lossy compression Prediction, Transforms + Entropy encoding Entropy encoding WSWG

  14. DPCM

  15. DPCM

  16. Simplified JPEG Entropy encoding Quantizer DCT 8x8 blocks Q factor RLE Entropy encoding

More Related