필터 지우기
필터 지우기

Confusion whether the calculated compression ratio is correct or not.

조회 수: 1 (최근 30일)
Nidhi Kumari
Nidhi Kumari 2018년 10월 11일
댓글: Walter Roberson 2019년 7월 30일
I am applying compression on an image of 40KB(350x500x3 uint8) to get new image of 18KB(348x500x3 uint8) .I have used the following code for finding the compression ratio-
z='xyz.jpg';
z1='out.jpg';
k=imfinfo(z);
k1=imfinfo(z1);
ib=k.Width*k.Height*k.BitDepth/8;
cb=k1.Width*k1.Height*k1.BitDepth/8;
cr=ib/cb;
The value of cr comes to be 1.005747126436782 .
I don't know whether the value of cr is correct or not.Can anyone verify it? Also i would like to know how it is manually calculated via the formula.
  댓글 수: 3
Nidhi Kumari
Nidhi Kumari 2018년 10월 11일
So what is the correct coding approach according to the byte size?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by