how to find compression ratio of an image ?

24 views (last 30 days)
hai,
I am working on image processing project, I need to find the compression ratio of an jpeg image. Is there any command in matlab to find the compression ratio of the image?
ARUN

Accepted Answer

Walter Roberson
Walter Roberson on 21 Feb 2012

More Answers (1)

Jan
Jan on 21 Feb 2012
No. The compression ratio is not stored in the JPEG file, as far as I know. Even commercial image software contains features to "estimate the compression level". Even if the compression level is stored in the file header, what would it mean? Imagine a photo of a blank white sheet of paper, which is compressed at first inside the camera by 95%, and then in the software by further 80%. Should the levels be multiplied?! And if the level is set to 5%, the resulting image file gets a signal to noise ratio, which is very near to the original object.
I know that there are some techniques to estimate the compression level, but this can be an approximation only.

Categories

Find more on Denoising and Compression in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!