FFTHighPass

High pass frequency filter.

 

function call:

[out_img1r,out_img1i]=vsg('FFTHighPass',in_img1r,in_img1i,rad1);

 

Arguments:

in_img1r - input image, 3 channel RGB, 1 channel greyscale or binary image of the real FFT coefficients.

in_img1i - input image, 3 channel RGB, 1 channel greyscale or binary image of the imaginary FFT coefficients.

rad1 – a double which specifies a radius.

 

Description:

The user defined input value is the cuttoff frequency for the high-pass filter.

out_img1r – the output image values are the real FFT coefficients of the input image if they lie outside the radius, otherwise they are set to 0.

out_img1i – the output image values are the imaginary FFT coefficients of the input image if they lie outside the radius, 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('FFTHighPass',out_img1,out_img2,0.05);

[out_img3]=vsg('InvFFT',out_img1r,out_img1i);

h=figure; image(uint8(out_img3));set(h,'Name','FFTHighPass');

   

Home       Functions     Back