clc;
clear;
close all;
load woman.mat;
a1=fft2(double(X));
a2=ifft2(a1);
b1=dct2(double(X));
b2=idct2(b1);
fmse=qmse(a2,X);
dmse=qmse(b2,X);
figure(1)
subplot(1,3,1);imshow(uint8(X));title('原图像');
subplot(1,3,2);imshow(uint8(a2));title('傅立叶重构图像');
subplot(1,3,3);imshow(uint8(b2));title('DCT重构图像');
- 1
- 2
前往页