0

I am doing image compression but I am finding hard time caclulating the compression ratio of the decoded image.

I thought it was calculated as

CR = Size of decoded image/ size of original image 

but am being told it is wrong.

Can someone please correct me on this.

And for the bit/pixel, is it also calculated as;

bpp= 8/CR ??

Please guide me.

Uttara
  • 2,496
  • 3
  • 24
  • 35
Muk
  • 11
  • 3
  • 7
  • 1
    I have seen the compression ration in other fields as: `Bytes used to store compressed file/bytes used to store original file`, optionally multiplied by 100%. Bit/ pixel would easily be calculated as `total number of bits/total number of pixels`. – Dennis Jaheruddin Jan 18 '13 at 14:05
  • yeah bytes is the size of the image so how would you calculate the compression ratio using the bit allocation? – Muk Jan 20 '13 at 02:06

0 Answers0