The main objective of this work is to compress an image 📸 using the Discrete Cosine Transform (DCT) applied on a two-dimensional numerous blocks of 8*8 pixels. , after compressing, the image reconstruction phase using Inverse DCT of each block.
At the beginning, I used "dct" & "idct" functions with the norm of ortho type.
from scipy.fftpack import dct, idct
later for better code and improvement, I used "dctn" & "idctn" with the nrom of ortho type.
from scipy.fftpack import dctn, idctn
for contact 📧 ahmedkamal200427@gmail.com