Are you looking for a general DCT or an 8x8 DCT for JPEG de/
compression? Are you needing it to use SIMD instructions or not?
illusion.admins@gmail.com - 05 Mar 2008 15:51 GMT
> Are you looking for a general DCT or an 8x8 DCT for JPEG de/
> compression? Are you needing it to use SIMD instructions or not?
I just need a general DCT. Simply I have an image that I need to
perform a DCT on so I can see the results of the DCT.
> 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.