資源簡介
對圖像進行傅立葉變換和離散余弦變換,并分別求出其逆變換后重構圖像的均方誤差。調用women圖片。

代碼片段和文件信息
clc;
clear;
close?all;
load?woman.mat;
a1=fft2(double(X));
a2=ifft2(a1);
b1=dct2(double(X));
b2=idct2(b1);
fmse=qmse(a2X);
dmse=qmse(b2X);
figure(1)
subplot(131);imshow(uint8(X));title(‘原圖像‘);
subplot(132);imshow(uint8(a2));title(‘傅立葉重構圖像‘);
subplot(133);imshow(uint8(b2));title(‘DCT重構圖像‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????325??2010-06-21?16:44??fd.m
?????文件????????103??2010-06-21?16:44??qmse.m
-----------?---------??----------?-----??----
??????????????????428????????????????????2
評論
共有 條評論