function call:
[out_img1r,out_img1i]=vsg('FFTGaussian',sizex,sizey,std);
Arguments:
sizex
– an integer specifying the horizontal dimension of the output image.
sizey
– an integer specifying the vertical dimension of the output image.
std
– a double specifying the standard deviation of the output Gaussian
kernel.
Description:
out_img1r
– the output image values are the real FFT coefficients which make up a
2d Gaussian bell curve if the zero frequency was at the centre
out_img1i
– the output image values are the imaginary FFT coefficients which are
set to zero.
Example:
w = 100;
h = 82;
sd = 1.6;
[out_img1r,out_img1i]=vsg('FFTGaussian',w,h,sd);
h=figure;imagesc((out_img1r(:,:,1)));colormap(gray);set(h,'Name','FFTGaussian');
Notes:
The function always
outputs a 3 channel image, all of which are identical. A single channel
may be selected if needed.