specifying bpp of an image
1 回表示 (過去 30 日間)
古いコメントを表示
Most of compression analysis use different value of bpp. For example Lena image in 0.5 bpp, 0.25bpp and 0.125bpp. How can we adjust the bpp on same image? tq in advance.
0 件のコメント
回答 (1 件)
Walter Roberson
2016 年 2 月 1 日
You start with the least compressed version (ideally with the version with no compression done), and you throw more and more information away. For example,
H = uint8(Orig(1:2:end, :, :) + Orig(2:2:end, :, :))/2);
Q = uint8((H(:, 1:2:end, :) + H(:, 2:2:end, :))/2);
S = uint8((Q(1:2:end, 1:2:end, :) + Q(2:2:end, 2:2:end, :))/2);
H will be half of the original size, Q throws away half of that so it will be 1/4 of the original size, S throws away 3/4 of that so it will be 1/16 of the original size...
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Denoising and Compression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!