FFT band-pass filter.
function call:
[out_img1r,out_img1i]=vsg('FFTBandPass',in_img1r,in_img1i,rad1,rad2);
Arguments:
in_img1r
- input image, 3 channel
in_img1i
- input image, 3 channel
rad1
– a double which specifies the smaller radius.
rad2
– a double which specifies the larger radius.
Description:
The user defined
inputs rad1 and rad2 are the inner and outer bounds of the
band-pass region.
out_img1r – the output image values are the real FFT coefficients of
the input image if they lie between radius1 and radius 2, otherwise they
are set to 0.
out_img1i
– the output image values are the imaginary FFT coefficients of the
input image if they lie between radius1 and radius 2, otherwise they are
set to 0.
Example:
img = openimage('baboon.jpg');
h=figure;image(img); set(h,'Name','Input
Image');
[out_img1,out_img2]=vsg('FFT',img);
[out_img1r,out_img1i]=vsg('FFTBandPass',out_img1,out_img2,0.05,
0.5);
[out_img3]=vsg('InvFFT',out_img1r,out_img1i);
h=figure; image(uint8(out_img3));set(h,'Name','FFTBandPass');