FFTDivide

Divide one Fourier data file by another.

 

function call:

[out_img1r,out_img1i]=vsg('FFTDivide',in_img1r,in_img1i,in_img2r,in_img2i);

 

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.

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

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

 

Description:

out_img1r – the output image values are the real FFT coefficients of the two input Fourier images divided, i.e. the complex division of in_img1 by in_img2.

out_img1r – the output image values are the imaginary FFT coefficients of the two input Fourier images divided, i.e. the complex division of in_img1 by in_img2.

 

 

Example:

img1 = openimage('baboon.jpg');

[out_img1r,out_img1i]=vsg('FFT',img1);

out_img2r = out_img1r/2;

out_img2i = out_img1i/2;

[out_img3r,out_img3i]=vsg('FFTDivide',out_img1r,out_img1i,out_img2r,out_img2;

 

Notes:

For RGB images, the function operates on all colour planes separately.

 

Home     Functions      Back