May-27-2018, 02:45 PM
I want to compress a gray image whose dimension is 64x64 into 40x40 image
I tried scipy.fftpack.dct and scipy.fftpack.idct but the resulted image is not in high quality
Also tried numpy.savez_compressed the resulted image quality is very good but it has two disadvantage, One it save the compressed array in a file !!! I dont need it to save the compressed array in a file and the other disadvantage is that the compressed array dimension is arbitrary and not controlled
Does anyone know how to compress a gray image in a pre specified dimension compressed array with high quality and without saving it in a file ?
I tried scipy.fftpack.dct and scipy.fftpack.idct but the resulted image is not in high quality
Also tried numpy.savez_compressed the resulted image quality is very good but it has two disadvantage, One it save the compressed array in a file !!! I dont need it to save the compressed array in a file and the other disadvantage is that the compressed array dimension is arbitrary and not controlled
Does anyone know how to compress a gray image in a pre specified dimension compressed array with high quality and without saving it in a file ?