C++
C#
VB
JScript
All

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;
}
External Function ddct  
External Function ddct2  
External Function didct  
External Function didct2  
External Function sdct  
External Function sdct2  
External Function sidct  
External Function sidct2  

See Also

Signal Processing