reset password
Author Message
ashasabeer
Posts: 55
Posted 20:38 May 16, 2011 |

Here is my ouput for  64*64 image

 

N: 0
Size of original input image: 64 x 64
Size of padded image: 64 x 64
Number of blocks for Y values: 8 x 8
Number of blocks for CrCb values: 4 x 4
Number of bits needed for original image :  98304.0
Number of bits for Y: 1536
Number of bits for Cr: 352
Number of bits for Cb: 352
Compression Ratio: 43.885714285714286


N: 1
Size of original input image: 64 x 64
Size of padded image: 64 x 64
Number of blocks for Y values: 8 x 8
Number of blocks for CrCb values: 4 x 4
Number of bits needed for original image :  98304.0
Number of bits for Y: 1408
Number of bits for Cr: 320
Number of bits for Cb: 320
Compression Ratio: 48.0

N: 2
Size of original input image: 64 x 64
Size of padded image: 64 x 64
Number of blocks for Y values: 8 x 8
Number of blocks for CrCb values: 4 x 4
Number of bits needed for original image :  98304.0
Number of bits for Y: 1280
Number of bits for Cr: 288
Number of bits for Cb: 288
Compression Ratio: 52.96551724137931

N: 3
Size of original input image: 64 x 64
Size of padded image: 64 x 64
Number of blocks for Y values: 8 x 8
Number of blocks for CrCb values: 4 x 4
Number of bits needed for original image :  98304.0
Number of bits for Y: 1152
Number of bits for Cr: 256
Number of bits for Cb: 256
Compression Ratio: 59.07692307692308
 
N: 4
Size of original input image: 64 x 64
Size of padded image: 64 x 64
Number of blocks for Y values: 8 x 8
Number of blocks for CrCb values: 4 x 4
Number of bits needed for original image :  98304.0
Number of bits for Y: 1024
Number of bits for Cr: 224
Number of bits for Cb: 224
Compression Ratio: 66.78260869565217
 
N: 5
Size of original input image: 64 x 64
Size of padded image: 64 x 64
Number of blocks for Y values: 8 x 8
Number of blocks for CrCb values: 4 x 4
Number of bits needed for original image :  98304.0
Number of bits for Y: 896
Number of bits for Cr: 192
Number of bits for Cb: 192
Compression Ratio: 76.8
eykang
Posts: 95
Posted 20:49 May 16, 2011 |

You output is correct.

But no need to post output for the 64x64 input as the solution is already out.

Please post outputs for Ducky and Dune.

--Kang 

ashasabeer
Posts: 55
Posted 20:58 May 16, 2011 |

Here is my oupt for Ducky and Dune.

Ducky.ppm

N: 0
Size of original input image: 250 x 273
Size of padded image: 256 x 280
Number of blocks for Y values: 32 x 35
Number of blocks for CrCb values: 16 x 18
Number of bits needed for original image :  1638000.0
Number of bits for Y: 141956
Number of bits for Cr: 21488
Number of bits for Cb: 29456
Compression Ratio: 8.491446345256609

N: 1
Size of original input image: 250 x 273
Size of padded image: 256 x 280
Number of blocks for Y values: 32 x 35
Number of blocks for CrCb values: 16 x 18
Number of bits needed for original image :  1638000.0
Number of bits for Y: 101894
Number of bits for Cr: 14769
Number of bits for Cb: 19395
Compression Ratio: 12.038983374737244
N: 2
Size of original input image: 250 x 273
Size of padded image: 256 x 280
Number of blocks for Y values: 32 x 35
Number of blocks for CrCb values: 16 x 18
Number of bits needed for original image :  1638000.0
Number of bits for Y: 72681
Number of bits for Cr: 10164
Number of bits for Cb: 12816
Compression Ratio: 17.122965471822372

N: 3
Size of original input image: 250 x 273
Size of padded image: 256 x 280
Number of blocks for Y values: 32 x 35
Number of blocks for CrCb values: 16 x 18
Number of bits needed for original image :  1638000.0
Number of bits for Y: 51444
Number of bits for Cr: 7193
Number of bits for Cb: 9514
Compression Ratio: 24.034863758418805

N: 4
Size of original input image: 250 x 273
Size of padded image: 256 x 280
Number of blocks for Y values: 32 x 35
Number of blocks for CrCb values: 16 x 18
Number of bits needed for original image :  1638000.0
Number of bits for Y: 36092
Number of bits for Cr: 4842
Number of bits for Cb: 6562
Compression Ratio: 34.48711470439616

N: 5
Size of original input image: 250 x 273
Size of padded image: 256 x 280
Number of blocks for Y values: 32 x 35
Number of blocks for CrCb values: 16 x 18
Number of bits needed for original image :  1638000.0
Number of bits for Y: 24600
Number of bits for Cr: 3537
Number of bits for Cb: 4311
Compression Ratio: 50.48076923076923
 
 
Dune.ppm
N: 0
Size of original input image: 320 x 320
Size of padded image: 320 x 320
Number of blocks for Y values: 40 x 40
Number of blocks for CrCb values: 20 x 20
Number of bits needed for original image :  2457600.0
Number of bits for Y: 187042
Number of bits for Cr: 24212
Number of bits for Cb: 26456
Compression Ratio: 10.338647932354549

N: 1
Size of original input image: 320 x 320
Size of padded image: 320 x 320
Number of blocks for Y values: 40 x 40
Number of blocks for CrCb values: 20 x 20
Number of bits needed for original image :  2457600.0
Number of bits for Y: 115663
Number of bits for Cr: 15371
Number of bits for Cb: 17087
Compression Ratio: 16.591840454763336
N: 2
Size of original input image: 320 x 320
Size of padded image: 320 x 320
Number of blocks for Y values: 40 x 40
Number of blocks for CrCb values: 20 x 20
Number of bits needed for original image :  2457600.0
Number of bits for Y: 74838
Number of bits for Cr: 10404
Number of bits for Cb: 11640
Compression Ratio: 25.366941227472594
N: 3
Size of original input image: 320 x 320
Size of padded image: 320 x 320
Number of blocks for Y values: 40 x 40
Number of blocks for CrCb values: 20 x 20
Number of bits needed for original image :  2457600.0
Number of bits for Y: 52620
Number of bits for Cr: 7434
Number of bits for Cb: 8193
Compression Ratio: 36.01037408237725

N: 4
Size of original input image: 320 x 320
Size of padded image: 320 x 320
Number of blocks for Y values: 40 x 40
Number of blocks for CrCb values: 20 x 20
Number of bits needed for original image :  2457600.0
Number of bits for Y: 37194
Number of bits for Cr: 6140
Number of bits for Cb: 6480
Compression Ratio: 49.33552816477295

N: 5
Size of original input image: 320 x 320
Size of padded image: 320 x 320
Number of blocks for Y values: 40 x 40
Number of blocks for CrCb values: 20 x 20
Number of bits needed for original image :  2457600.0
Number of bits for Y: 26210
Number of bits for Cr: 5016
Number of bits for Cb: 5142
Compression Ratio: 67.57589089309283
amir309
Posts: 4
Posted 21:24 May 16, 2011 |

 

Dune.PPM :    S=2,457,600

n=0:
Y=118,695   Cr=17,186   Cb=18,698 
D=154,579
CR=15.9
 
n=1:
Y=82,828   Cr=12,199   Cb=13,148 
D=10,8175
CR=22.72
 
n=2:
Y=57,324   Cr=9,036   Cb=9,732 
D=76,092
CR=32.3

n=3:
Y=42,504   Cr=6,961   Cb=7,368 
D=56,833
CR=43.24
 
n=4:
Y=31,892   Cr=5,820   Cb=6,050 
D=43,762
CR=56.16
 
n=5:
Y=24,420   Cr=4,917   Cb=4,944 
D=34,281
CR=71.69
Last edited by amir309 at 22:33 May 16, 2011.
hmodi
Posts: 27
Posted 23:06 May 16, 2011 |

Attached is compression ratio for ducky and dune.

Attachments: