Accord.Imaging.ComplexImage.ForwardFourierTransform C# (CSharp) Method

ForwardFourierTransform() public method

Applies forward fast Fourier transformation to the complex image.
public ForwardFourierTransform ( ) : void
return void
        public void ForwardFourierTransform()
        {
            if (!fourierTransformed)
            {
                for (int y = 0; y < height; y++)
                {
                    for (int x = 0; x < width; x++)
                    {
                        if (((x + y) & 0x1) != 0)
                            data[y, x] *= -1;
                    }
                }

                FourierTransform.FFT2(data, FourierTransform.Direction.Forward);
                fourierTransformed = true;
            }
        }