⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_main.m

📁 code efficace dct of with matlab
💻 M
字号:
clc;clear;close all;
disp('EFFICIENT 8X8 DISCRETE COSINE TRANSFORM');
disp('In order to obtain the source code please visit');
disp(' ');
disp('http://www.advancedsourcecode.com/efficientdctccode.asp');
disp(' ');
disp('DCT and IDCT for arbitrary size images are available on request.');
disp('For any question please email me luigi.rosa@tiscali.it');
disp(' ');
disp('Luigi Rosa');
disp('Via Centrale 35');
disp('67042 Civita Di Bagno');
disp('L''Aquila - ITALY');
disp('mobile +39 3207214179');
disp('email luigi.rosa@tiscali.it');
disp('website http://www.advancedsourcecode.com');
disp(' ');

a = 255*rand(8,8);

% NOTE: if you work with uint8 images you have to use dct_uint8 and
% idct_uint8

y1 = dct2(a);
y2 = dct_double(a);

figure,mesh(abs(y1-y2)),title('Difference between DCT2 and C-code');


y3 = idct2(y1);
y4 = idct_double(y1);

figure,mesh(abs(y3-y4)),title('Difference between IDCT2 and C-code');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -