I'm implementing DCT and IDCT algorithms in mathematica, and i have following problem. DCT-II transformation looks good (the results are the same like in the book), but i cant get back to original data.
As you can see the results of DCT-III are very, very poor. I attached my algorithm written in mathematica, based on D. Salomon Data Compression The Complete Reference book.