Video 27: Discrete Cosine Transform (DCT) of Images and Image Compression (Examples with MATLAB codes)

Hello Viewers, in this video, Discrete Cosine Transform (DCT)of images is introduced. A brief theoretical background of DCT is highlighted along with its application to image compression.

Also its basic properties, advantages and disadvantages are also discussed.

Mathematical equations are also explained for forward DCT and inverse DCT and basis functions are also discussed. MATLAB codes are also given for basis function generation, image compression using dct2() and dctmtx().     

This video has following contents:

  • Discrete Cosine Transform. Its applications, Advantages and Disadvantages. 
  • Computing 2D FDCT, IDCT and DCT basis functions.
  • MATLAB Code for 2D-DCT basis functions.
  • DCT computation methods (DCT using FFT and DCT using transformation matrix).
  • Image Compression using DCT.
  • MATLAB Code for image compression using dct2().
  • MATLAB Code for image compression using dctmtx() and block processing. 

Links of previous videos:

1. Wavelet Transform Analysis of Images using MATLAB and SIMULINK: Click Here

2. Wavelet Transform Analysis of Images using Python: Click Here


1. Lena Image: Download

2. Peppers Image: Download



  1. Replies
    1. Thank You Very match

      I'm a student, your course is very useful can send me the tutorial and code, please

  2. can you please provide me the code sir?