2D walsh Transform
no vote
%=======================================================
%FUNCTIONS FOR 2-D SEQUENCY(WALSH),DYADIC(PALEY) AND
%NATURAL(HADAMARD)ORDERED FAST WALSH-HADAMARD TRANSFORM
%=======================================================
function xx = fwht2d(xx)
% The function implement the 2D fast Walsh-Hadamard transform.
% The dimension of the matrix must be an integer power of 2.
% Author: Gylson Thomas
% e-mail: gylson_thomas@yahoo.com
% Asst. Professor, Electrical and Electronics Engineering Dept.
% MES College of Engineering Kuttippuram,
% Kerala, India, February 2005.
% copyright 2007.
N = length(xx);
for i = 1:N
xx1(i,:) = fhtseq(xx(i,:));
end
% REPLACE fhtseq BY fhtdya FOR DYADIC ORDER AND fhtnat FOR NATURAL ORDER
xx = zeros(N);
for j = 1:N