how can i find the compression ratio after running the LZW compression code ?
Mostra commenti meno recenti
I did LZW compression on an image. How can i find the compression ration after the completion? knowing that i used the code written here : http://www.mathworks.com/matlabcentral/fileexchange/4899-lzw-compression-algorithm
Risposte (1)
Image Analyst
il 13 Apr 2017
0 voti
Look at the size of the file on disk and divide the number of bytes the image variable has in your MATLAB program by that number. For example, the disk file is 200,000 bytes, and the size in MATLAB is 1,000,000 bytes. 1,000,000/200,000 = 5 so the compression ratio is 5 to 1.
2 Commenti
Sanaa Asal
il 14 Apr 2017
Image Analyst
il 14 Apr 2017
I don't know what that means but try "whos" to get the size of the data/table that you think is the compressed version and compare it to the size of the uncompressed version.
Categorie
Scopri di più su Image Data in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!