can be a compression rate 100%,200%----1000% also send me a equation to calculate compression rate.

조회 수: 5 (최근 30일)
can be a compression rate 100%,200%----1000% also send me a equation to calculate compression rate.
  댓글 수: 3
Geoff Hayes
Geoff Hayes 2016년 3월 7일
Sam - please clarify what you are looking for. Do you want an algorithm to compress an image? Is this part of your homework?
You will more likely receive help if you provide details on the purpose of your code, show what you have attempted, and discuss any errors or problems that you have encountered.

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

답변 (2개)

Moe_2015
Moe_2015 2016년 3월 7일
Do you mean compression ratio? Because with a simple search it looks like the equation is easy to use. Also if you are asking can a compression ratio be 100%, 200%, up until 1000% the answer is yes.
  댓글 수: 3
Moe_2015
Moe_2015 2016년 3월 7일
편집: Moe_2015 2016년 3월 7일
Where are you getting 1000:1? 1000% would be 10:1 which is reasonable not 1000:1.

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


Walter Roberson
Walter Roberson 2016년 3월 7일
There are two different measures in common use: compression rate, and compression ratio. When you see something expressed as a percentage, then it is always a compression rate, not a compression ratio. Compression rates cannot exceed 100. Compression ratios can exceed 100, but are never stated as percentage.
Compression rate:
(1 - (size of compressed version) / (size of original)) * 100
For example, a 66.6% compression ratio would indicate that 2/3 of the storage space has been saved and that 1/3 of the original space is still required. A 1000% compression ratio would indicate that the data has been compressed down to negative nine times its original size, which is of course impossible (at most you could compress down to zero times the original size, 100% compression.)
Compression ratio is always given in ratio form, never in percentage form.
Compression rate:
(size of original) : (size of compressed version)
reduced down to some "pleasing" rational, typically in "something to 1" form. For example, no-one ever quotes 31917 : 8352 as a compression ratio, but they might quote 375 : 1
If that hypothetical 31917 original were to be compressed down to size 1, that would be a ratio of 31917 : 1, so in ratio form it is possible to exceed 100 or 1000.

카테고리

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