Discrete Cosine Transform
Copyright (C) 2005 IENT-RWTH Aachen
Notation convention
The C Interface for DCT functions uses the following notation convention:
s|d [i] dct [2]
s|d | single precision real | double precision real |
[i] | inverse |
[2] | matrices |
Examples
{ int n=8; DenseVector<float>::self X(n,1), Y(n); sdct(X.size(),&X[0],&Y[0]); cout << Y << endl; } { int m=8,n=8; DenseMatrix<double>::self X(m,n,1), Y(m,n); ddct2(X.nrows(),X.ncols(),&X(0,0),&Y(0,0)); cout << Y << endl; }
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
See Also