fab-jul/imgcomp-cvpr

Saving quantized images.

nit96kaus opened this issue · 2 comments

If I save the quantized volume after the quantizer, the numpy file is larger in size than the original image. How to save the compressed form so that it takes lesser memory than the original image ?

Please have a look at this section in the README and especially the code here, where the image gets written to a temporary file at fout_p. If you use the numpy directly, you need many more bits, e.g., if you use uint8, every symbol takes 8 bits instead of H(symbol) bits.

Thanks a lot.