我使用matlab。
matlabpool
% key code
result=zeros(size(I,1)-2*l-1,size(I,2)-2*width-1,num_of_dir);
s1=size(I,1);
s2=size(I,2);
parfor t=1:num_of_dir
for i=l+1:size(I,1)-l-1
for j=width+1:size(I,2)-width-1
result(i,j,t)=wilcoxon(I,i,j,temple{t},alpha,sigma);
end
end
end