Matlab数字图像处理尝试之:[4]WTH变换
1、
clear all;
I=imread('C:\Users\zjy\Desktop\test1.tif');
H=hadamard(256); %
I=double(I)/256; %
hI=H*I*H; %
hI=hI/256;%
subplot(2,2,1);imshow(I);%
title('原始图像1');
subplot(2,2,2);imshow(hI);%
title('图像的二维离散Hadamard变换1');%
>>I=imread('C:\Users\zjy\Desktop\test2.tif');
H=hadamard(256); %
I=double(I)/256; %
hI=H*I*H; %
hI=hI/256;%
subplot(2,2,3);imshow(I);%
title('原始图像2');
subplot(2,2,4);imshow(hI);%
title('图像的二维离散Hadamard变换2');%
用以上程序段对两幅图像进行沃尔什-哈达玛变换的结果如下图所示。
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:26
阅读量:70
阅读量:40
阅读量:48
阅读量:88