MatLab Solutions: "Introduction to Digital Signal Processing: A Computer Laboratory Textbook".
29 Oct 2012
25 Nov 2013)
These files are the MatLab solutions of exercises contained in the above DSP lab textbook.
% Testing the my_DCT.m and my_IDCT.m on an image
% via their 2D corresponding custom functions:
clc; clear; close all;
I = imread('cameraman.tif');
I = im2double(I);
% First transform the image using both functions:
B1 = dct2(I);
B2 = my_DCT_2D(I);
A1 = idct2(B1);
A2 = my_IDCT_2D(B2);