how the compression ratio is calculated
古いコメントを表示
i have a code
X=imread(file);
wavelet='haar'
level=2;
[c,s] = wavedec2(X,2,wavelet);
alpha = 1.5; m = 2.7*prod(s(1,:));
[thr,nkeep] = wdcbm2(c,s,alpha,m)
[xd,cxd,sxd,perf0,perfl2] = wdencmp('lvd',c,s,wname,n,thr,'h');
disp('Compression Ratio');disp(perf0);
the size of xd and X is same,plz tell how compression ratio is calculated
both images look like same ,how we can say it is compressed ny 84%
perf0 is 84%
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Denoising and Compression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!