can you please provide me with the simplest demonstrating code to calcolate compression ratio

回答 (1 件)

Pradeep Gowda
Pradeep Gowda 2015 年 4 月 5 日
a=whos('sBmp'); b=dir('compressed.jpg'); c=a.bytes/b.bytes;
sBmp is my un-compressed image and compressed.jpg is saved output image. c gives u compresstion ratio.

カテゴリ

質問済み:

2015 年 4 月 5 日

回答済み:

2015 年 4 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by