Category Archives: tech

pretty much done w/ my image compression. now does multi-channel (even mixed lossy/lossless), colour-space transforms, but it needs quite a bit of memory (2048×2048 image w/ 3 channels (stored as ints) -> 128mb).

i will now follow up on those requests for “Die Gilde”, vStrip, area smoother… so stay tuned for a little longer, as i’ve got tons of interesting ideas for my image compression scheme that i want to try first.

had a nice little talk with darius(z) yesterday… and i’ve pretty much figured out how to do the bit-distribution for multi-channel images:
let 1..n be the channels.
start w/ compressing each of them with equally distributed bits.
then let i be the (r)mse [(root) mean square error] of the worst channel (max error) and j be (r)mse of the best channel (min error). furthmore let ib and jb be the bits allocated to produce i and j respectively.
then the new bits allocated to channel i are (ib+jb)*j/(i+j) and for channel j (ib+jb)*i/(i+j). we do this until all channels are “reasonably” balanced (as by our error-criterium).
i only hope that it doesn’t oscillate.. °_°

anyone got any advice on bit-allocation for multi-channel images (i.e. got a nice single channel compression, but how do i distribute the bit-budget to more than one channel)?