1 function FI=fft_filt_2(V,FB,sf);
2 % FI=fft_filt_2(V,FB,sf);
4 % requires image to be called "V"
5 % and filters to be in FB
6 % sf is the subsampling factor
12 % prepare FFT of image for filtering
14 I=zeros(size(V)+[M1-1 M2-1]);
24 fF=fft2(f,N1+M1-1,N2+M2-1);
27 If=If(ceil((M1+1)/2):ceil((M1+1)/2)+N1-1,ceil((M2+1)/2):ceil((M2+1)/2)+N2-1);
28 FI(:,:,n)=If(1:sf:N1,1:sf:N2);