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

1 回表示 (過去 30 日間)
tina jain
tina jain 2015 年 4 月 5 日
回答済み: Pradeep Gowda 2015 年 4 月 5 日
demo for compression ratio calculation

回答 (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.

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by