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;
}
}