DIP Huffman & Arithmetic Coding Ppt
DIP Huffman & Arithmetic Coding Ppt
COMPRESSION:
Huffman & Arithmetic
Coding
Efficient Encoding in Digital
Image Processing
IMAGE COMPRESSION
Huffman coding is a lossless compression technique that assigns
shorter binary codes to frequently occurring pixels in an image,
reducing storage without losing data.
Image Compression
• Arithmetic coding is a form of
entropy encoding that converts Step 1: Step 2: Step 3:
an entire message into a single Convert Build Encode
floating-point number between 0
Image to Probabil Using
Symbol ity Range
and 1. Unlike Huffman coding, Sequence Model
which assigns integer-length Convert pixel Estimate how Narrow down a
codes to symbols, arithmetic values into often each range [0, 1)
symbols symbol (pixel based on
coding assigns fractional values, (numbers). value) symbol
appears. probabilities.
leading to more efficient Example: If 50
compression. occurs 25% of
the time, its
• It is a lossless data compression range is [0,
technique that encodes the 0.25).
{a1,a2,a3, a1 a2 a3 a3
Consider the and consider the
a4} a4 9
Thesymbols:
table defines a cumulative range for sequence:
each symbol,
dividing the interval [0,1]
Each symbol occupies a portion of the interval [0,1],
Encoding
based on its probability.
Process:
1.Start with the full range [0,1].
2.Choose the first symbol and update the range
based on its assigned interval.
3.Repeat the process for each new symbol, zooming
into the interval assigned to the last symbol seen.
4.The final interval represents the entire message as
a single floating-point number.
10
WHERE ARE THESE USED
📌 Huffman Coding:
IN DIP?
• Used in PNG, TIFF, and JPEG for entropy coding.
• Efficient for lossless compression by assigning shorter
codes to frequent symbols.
📌 Arithmetic Coding:
• Implemented in JPEG2000, HEVC (High-Efficiency Video
Coding) for improved video and image compression.
• Offers better compression efficiency than Huffman
coding.
📌 Medical & Satellite Imaging:
• Prefers Arithmetic Coding due to its higher compression
efficiency, crucial for storing and transmitting large
datasets.
THANK YOU
Presented By: Sanya
Behera
Enrolment no:
01517711622