Reputation: 79
gauss=exp(-(x.^2+y.^2)/scale(i)^2);
gaus=gauss/sum(gauss(:));
x=fft2(gaus,size(image,1),size(image,2));
I want to ask about this part of codein MATLAB
Upvotes: 0
Views: 385
Reputation: 1454
1) The colon operator reshapes the matrix into a vector.
2) You can transform each sample separately.
Upvotes: 1