資源簡介
本資源實驗結果可以讓初學小波者很好的了解小波每層的分解和重構過程,以便于進行后續的研究。
代碼片段和文件信息
i1=imread(‘G:\tupian\girl2.bmp‘);
i=rgb2gray(i1);
figure(1);
subplot(221);
imshow(i);
title(‘原始圖像‘);
[cs]=wavedec2(i2‘haar‘);
a1=wrcoef2(‘a‘cs‘haar‘1);
a2=wrcoef2(‘a‘cs‘haar‘2);
subplot(223);
image(a1);
%colormap(map);
title(‘尺度1時的低頻圖像‘);
subplot(224);
image(a2);
title(‘尺度2時的低頻圖像‘);
%?從小波分解結構[cs]在尺度為2時重構高頻
hd2=wrcoef2(‘h‘cs‘haar‘2);
vd2=wrcoef2(‘v‘cs‘haar‘2);
dd2=wrcoef2(‘d‘cs‘haar‘2);
%繪制尺度2的高頻圖像
figure(2);
subplot(221);
imshow(hd2);
title(‘尺度為
- 上一篇:sift特征點提取和兩幅圖像的特征點匹配
- 下一篇:meyer小波的分解與重構
評論
共有 條評論