Revision as of 05:55, 2 September 2012 by imported>Dmitrii Kouznetsov
DCTI is one of realizations of the Discrete Cos transform operator.
The name is created in analogy with DCT by Wikipedia
[1]
and notations by the Numerical recipes in C
[2].
DCTI, or Discrete Cos Transform of kind I, is orthogonal transform, that repalces an array of length with elements , to the array with elements
- for
Normalized form
The orthonormaized transform can be defined with operator , that acts on array in the following way:
Operator is its own inverse;
Numerical implementation
the C++ numerical implementation of the discrete cos transtorm of First kind consists of 3 files
zfour1.cin,
zrealft.cin,
zcosft1.cin; these files should be loaded to the working directory in order to compile the examples.
For the application in wave optics, z_type should be defined as
double" or complex(double); however, for other applications, such a type may be defined in other ways too.
The name of the functions and sense of the arguments are chosen following notations by the Numerical recipes in C, the call of the transform of array of length has form
zcosft1(F-1,N); after such a call, values of the elements of array are replaced with values calculated with the expression (1) above. For , the evaluation requires of order of operations
Approximation of the CosFourier
The CosFourier operator transforms a function of non–negative argument to function in the following way:
For the discrete approximation of this operator, assume some large natural number . Let .
Let function be smooth and quickly decay at infinity. Then, the transform of can be approximated as follows:
For , this can be written as follows:
-
At the transformation, it is assumed, that can be neglected as . In such a way,