Skip to content

Instantly share code, notes, and snippets.

View n0rbed's full-sized avatar

Yassin AbdelHay n0rbed

View GitHub Profile
@n0rbed
n0rbed / dct.m
Created March 26, 2026 13:38
dct and idct
clear;
clear all;
%Read image "Fig2.jpg"
%Image=imread('Fig2.jpg');
Image=imread('cameraman.tif');
imshow(Image)
Block=double(Image(1:8,1:8)); %take the first block as an example
disp("original block")
disp(Block)