Discrete Cosine Transform in C#?

  • Thread starter Thread starter illusion.admins
  • Start date Start date
I

illusion.admins

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
 
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?
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top