Inverse two-dimentional Fast Fourier Transformation from complex to complex.
Transformation is applied on Mtx matrix and results are saved in the calling matrix. The source matrix must be complex. If source matrix is real, an exception will be raised. The source matrix is not changed. Calling matrix will be complex and will have the same size as the source matrix. NoScale parameter allows the scaling to be turned off.
Example 1
var a,b: TMtx;
begin
CreateIt(a,b);
try
a.SetIt (2,4,False,
[1, 2, 3, 4,
-5, 6,-7, 8] );
a.ExtendToComplex;
b.IFFT2D(a);
// result will be
[(1.5, 0), (0, -0.5), (-3.5, 0), (0, 0.5),
(1, 0), (-0.5, 0), (3, 0), (-0.5, 0) ]
finally
FreeIt(a,b);
end;
end;
Declaration
Function IFFT2D(NoScale: boolean = False): TMtx;
Description
Transformation is applied in-place. Source matrix must be complex. If source matrix is real, an exception will be raised. Result matrix will be complex. Size of the calling matrix is not changed. NoScale parameter allows the scaling to be turned off.Example 1
var a: TMtx;
begin
CreateIt(a);
try
a.SetIt (2,4,False,
[1, 2, 3, 4,
-5, 6,-7, 8] );
a.ExtendToComplex;
a.IFFT2D;
// result will be
[(1.5, 0), (0, -0.5), (-3.5, 0), (0, 0.5),
(1, 0), (-0.5, 0), (3, 0), (-0.5, 0) ]
finally
FreeIt(a);
end;
end;