I'm new to Mathemtica and I'm trying to calculate Discrete Cosine Transformation FDCT. I found the FourierDCT built-in function, but not DCT, so I need to implement it. I have tried couple of ideas but no luck yet. Any ideas that can get me started will be really appreciated.

Edit 1 ******************************
This is the result of FourierDCT on the same Matrix from the Wikipedia link above, and the values are different. I need Forward Discrete Cosine Trasnformation, not the FourierDCT:

From Wikipedia: "A DCT is similar to a Fourier transform in the sense that it produces a kind of spatial frequency spectrum."
Edit 2 ******************************
This is the matrix I'm using as input in Mathemtica:
b = {{52, 55, 61, 66, 70, 61, 64, 73}, {63, 59, 55, 90, 109, 85, 69, 72}, {62, 59, 68, 113, 144, 104, 66, 73}, {63, 58, 71, 122, 154, 106, 70, 69}, {67, 61, 68, 104, 126, 88, 68, 70}, {79, 65, 60, 70, 77, 68, 58, 75}, {85, 71, 64, 59, 55, 61, 65, 83}, {87, 79, 69, 68, 65, 76, 78, 94} }


DCT, it adds a "normalizing scale factor to make the transformation orthonormal". The DCT that Mathematica implements is this en.wikipedia.org/wiki/Discrete_cosine_transform . There could be to add this normalization scale factor in there. – Nasser Oct 25 '12 at 4:05