how to convert bpp(bits per pixel to compression ratio)?

조회 수: 7 (최근 30일)
tina jain
tina jain 2015년 5월 10일
편집: tina jain 2015년 5월 10일
e.g. let bpp is 0.1870....than what will be the compression ratio?

답변 (1개)

Walter Roberson
Walter Roberson 2015년 5월 10일
That depends upon the original image. Most images in common use are 8 bits (uint8) per color component, 3 color components per pixel, so 24 total bits per pixel. If you had 0.1870 bits per pixel instead, your compression ratio would be 24:0.1870 or about 128.3 to 1
Some kinds of image have only 1 color pane, and some kinds of images use more or fewer bits per component.
imfinfo() can be used to extract information about an image file. In particular look at the Bitdepth field.
  댓글 수: 11
Walter Roberson
Walter Roberson 2015년 5월 10일
편집: Walter Roberson 2015년 5월 10일
To interpret that, we would need more information about what fileSize means here, and about what X is.
Note: I do not have the Wavelet Compression Toolbox to look at that code. (Do not post the file, though, it is proprietary.)
tina jain
tina jain 2015년 5월 10일
편집: tina jain 2015년 5월 10일
X is the image. e.g lena image(256*256*1), file size is size of image after ezw compression

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

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by