Matlab数字图像处理尝试之:[4]WTH变换

时间:2026-02-13 16:11:25

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');%

用以上程序段对两幅图像进行沃尔什-哈达玛变换的结果如下图所示。

Matlab数字图像处理尝试之:[4]WTH变换

© 2026 海能知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com