How can calculate compression ratio in Principal component analysis using SVD
6 次查看(过去 30 天)
显示 更早的评论
compression ratio is the rate of original file on the compressed file. but in PCA tech the ratio= 1024/(2*PrinComps+1)?
0 个评论
回答(2 个)
Image Analyst
2017-9-18
I don't understand the question. Compression ratio is the ratio of the disk size of the original (uncompressed) image divided by the size of the compressed image file. Like if the original file was 10 MB and you compressed it, what whatever method (SVD or otherwise), and now the size of the compressed file is 2 MB, then the compression ratio is 10/5 = 5 to 1. So, is that formula not working for you?
6 个评论
Walter Roberson
2017-9-20
I showed how to use whos to find out the data storage requirement of a matrix. Call that on the original matrix. Call that on each of the matrices of non-constant values that are needed together to reconstruct the original matrix, and sum those. The original size divided by the sum of the representation matrix sizes is the compression ratio.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!