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变换

猜你喜欢