How to calculate compression ratio of image?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
A imgae converted to zigzag encoding after i applied Huffman compression.Now i MAT file only.
How to calculate compression ratio
1 Kommentar
Walter Roberson
am 24 Okt. 2015
This question has been asked numerous times. Please search for compression ratio in the "Search Answers" box.
Antworten (1)
Image Analyst
am 24 Okt. 2015
Calculate the ratio of the size of the uncompressed file on disk to the compressed file on disk.
4 Kommentare
elz tomz
am 26 Sep. 2018
using matlab function imfinfo you will get image filesize. with that you can calculate cr
Walter Roberson
am 26 Sep. 2018
image file size does not tell you compression ratio very well. image files have headers, and in some formats can have extra comments of arbitrary size.
Most image formats default to compressing the data. JPEG defaults to compressing the data in a lossy manner (throws away information); most of the other formats preserve all of the information.
In terms of the original question, the file was said to be a MAT file, which is not an image file format, so imfinfo will not tell you anything about it.
MAT files compress by default, but not always every item.
Siehe auch
Kategorien
Mehr zu Import, Export, and Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!