<il*************@gmail.comwrote in message
news:59**********************************@b1g2000h sg.googlegroups.com...
Has anyone had experience with or implemented a Discrete Cosine
Transform in C#? Found code for FFT which I have taken advantage of
and modified for my use but can not find a thing for DCT. Any help
would be great!
Thanks
C# math is compatible with ANSI C. Find a implementation of DCT you like
and change cos to Math.Cos...
How many times are you doing this? If you are just wanting to see the
transform of a handful of images, you'd be better off using a purpose-built
signal processing package like matlab (or its free clone, octave). Only if
you need to automate the process to be done a million times would C# make
sense, and a matlab script would probably still be faster. Another
advantange to using such a tool is that someone else has already taken care
of numerical stability.