how to convert bpp(bits per pixel to compression ratio)?
1 回表示 (過去 30 日間)
古いコメントを表示
e.g. let bpp is 0.1870....than what will be the compression ratio?
0 件のコメント
回答 (1 件)
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
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.)
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!