FFTMultiply

Multiply two Fourier data files.

 

function call:

[out_img1r,out_img1i]=vsg('FFTMultiply',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 multiplication 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 multiplication of in_img1 by in_img2.

 

Example:

img1 = imread('baboon.jpg');

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

out_img2r = out_img1r/10;

out_img2i = out_img1i/10;

[out_img3r,out_img3i]=vsg('FFTMultiply',out_img1r,out_img1i,out_img2r,out_img2i);

 

Notes:

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

 

Home     Functions      Back