Skip to content

ahmed-kamal2004/ImageCompressingProject

Repository files navigation

Image Compressing and Decompressing project 💫

RGB Image Compression Using Discrete Cosine Transform Algorithm

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.

Libraries & functions

functions

libraries

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