필터 지우기
필터 지우기

How to calculate compression ratio of image?

조회 수: 3 (최근 30일)
S .p.aramesh S
S .p.aramesh S 2015년 10월 24일
댓글: Walter Roberson 2018년 9월 26일
A imgae converted to zigzag encoding after i applied Huffman compression.Now i MAT file only.
How to calculate compression ratio
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 10월 24일
This question has been asked numerous times. Please search for compression ratio in the "Search Answers" box.

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

답변 (1개)

Image Analyst
Image Analyst 2015년 10월 24일
Calculate the ratio of the size of the uncompressed file on disk to the compressed file on disk.
  댓글 수: 4
elz tomz
elz tomz 2018년 9월 26일
using matlab function imfinfo you will get image filesize. with that you can calculate cr
Walter Roberson
Walter Roberson 2018년 9월 26일
image file size does not tell you compression ratio very well. image files have headers, and in some formats can have extra comments of arbitrary size.
Most image formats default to compressing the data. JPEG defaults to compressing the data in a lossy manner (throws away information); most of the other formats preserve all of the information.
In terms of the original question, the file was said to be a MAT file, which is not an image file format, so imfinfo will not tell you anything about it.
MAT files compress by default, but not always every item.

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

카테고리

Help CenterFile Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by