How can calculate compression ratio in Principal component analysis using SVD

조회 수: 15 (최근 30일)
Noor Abbas
Noor Abbas 2017년 9월 18일
댓글: Walter Roberson 2017년 9월 20일
compression ratio is the rate of original file on the compressed file. but in PCA tech the ratio= 1024/(2*PrinComps+1)?

답변 (2개)

Image Analyst
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
Noor Abbas
Noor Abbas 2017년 9월 20일
thanks for your answers, but my question is how can i calculate compression ratio in PCA (principal component analysis)code
Walter Roberson
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.

댓글을 달려면 로그인하십시오.


Noor Abbas
Noor Abbas 2017년 9월 18일
please see the code

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by