Binary Image Compression: - The Art of Modeling Image Source
Binary Image Compression: - The Art of Modeling Image Source
discrete
Transformation Y Entropy binary
by run-length
source X counting coding bit stream
P(Y)
probability
estimation
Y 4 3 6 5 2
Huffman coding
Example
00000100000001000011000000001…
5 7 4 0 8 run-length
Properties
- all coded symbols are “0” run-lengths
- run-length is a nonnegative integer
EE465: Introduction to Digital Ima
ge Processing
Modeling Run-length
Run-length k Probability
1 1/2
2 1/4
3 1/8
4 1/16
5 1/32
… …
k codeword
1 0 1 0
2 10
3 110 1 0
4 1110
5 11110 1 0
6 111110
1 0
7 1111110
8 11111110
… …… …
EE465: Introduction to Digital Ima
ge Processing
From 1D to 2D
white run-length
black run-length
Compression Ratio=13.65
Observations:
-dominant background color (e.g., white)
-objects only contain a few other colors
EE465: Introduction to Digital Ima
ge Processing
Palette-based Image
Representation
index color
0 white
Any (R,G,B)
1 black
24-bit color
2 red
can be repre-
3 green sented by its
4 blue index in the
5 yellow palette.
… …