0
1.9kviews
Find the Huffman coded image of the following encoder.

Given [ 10104040 20202030 30304040 50506080]

(i) Calculate Bits per pixel (BPP) and percentage of compression of compressed image. Do not consider payload of Huffman Table.

1 Answer
0
13views

F=[ 10104040  20202030  30304040  50506080]

Size of input image = 16 pixels = 16 bytes = 128 bits

To find Huffman Coded image:

Symbols probability
10 2/16
20 3/16
30 3/16
40 4/16
50 2/16
60 1/16
80 1/16

enter image description here

Symbol Codeword’s:

enter image description here

Huffman Coded Image:

enter image description here

To find Bits Per Pixel of compression ratio:

BPP=Size of compressed imageTotal number of pixelsBPP=43 bits16 pixelBPP=2.687

To find compression ratio:

CompressionRatio=(Original size  Compression Size)Original sizeCompressionRatio=12843128X100CompressionRatio=66.40

Please log in to add an answer.