Part 1
for Lena :
*************
Entropy = 7.445507
The total number of bits requires is 1951794.875000 bits
for Babboon :
*****************
Entropy = 7.474432
The total number of bits requires is 1959377.375000 bits
Part 2
1) lenaerrdiff.raw
********************
Run length Entropy = 1.353752
The total number of runs is 159928
The total number of bits requires is 216502.781250 bits
The number of bits per pixel requires is 0.825893 bits
2) weaskedforit.raw
********************
Run length Entropy = 5.173139
The total number of runs is 10224
The total number of bits requires is 52890.175781 bits
The number of bits per pixel requires is 0.201760 bits
Part 3
LENA.RAW
****************
0) lena_bit0
--------------
Run length Entropy = 2.013025193
The total number of runs is 130213
The total number of bits requires is 262122.0495 bits
The number of bits per pixel requires is 0.9999162655 bits
1) lena_bit1
--------------
Run length Entropy = 2.00555946
The total number of runs is 130700
The total number of bits requires is 262126.6216 bits
The number of bits per pixel requires is 0.9999337065 bits
2) lena_bit2
--------------
Run length Entropy = 2.054282455
The total number of runs is 127512
The total number of bits requires is 261945.6644 bits
The number of bits per pixel requires is 0.9992434098 bits
3) lena_bit3
--------------
Run length Entropy = 2.340213782
The total number of runs is 107856
The total number of bits requires is 252406.0977 bits
The number of bits per pixel requires is 0.9628528506 bits
4) lena_bit4
--------------
Run length Entropy = 2.81320543
The total number of runs is 77499
The total number of bits requires is 218020.6081 bits
The number of bits per pixel requires is 0.8316826175 bits
5) lena_bit5
--------------
Run length Entropy = 3.493865448
The total number of runs is 45667
The total number of bits requires is 159554.3534 bits
The number of bits per pixel requires is 0.6086515557 bits
6) lena_bit6
--------------
Run length Entropy = 4.088771502
The total number of runs is 28387
The total number of bits requires is 116067.9566 bits
The number of bits per pixel requires is 0.4427641167 bits
7) lena_bit7
--------------
Run length Entropy = 5.002089
The total number of runs is 13926
The total number of bits requires is 69659.085938 bits
The number of bits per pixel requires is 0.265728 bits
Part 4
for Lena :
*************
Entropy = 5.055012
The total number of bits requires is 1325136.125000 bits
for Babboon :
*****************
Entropy = 6.547993
The total number of bits requires is 1716510.500000 bits
Lab 10 - Solutions
Last edit 2-Apr-07