Discrete Cosine Transform in C#?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • illusion.admins@gmail.com

    Discrete Cosine Transform in C#?

    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
  • not_a_commie

    #2
    Re: Discrete Cosine Transform in C#?

    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?

    Comment

    • illusion.admins@gmail.com

      #3
      Re: Discrete Cosine Transform in C#?

      On Mar 5, 10:25 am, not_a_commie <notacom...@gma il.comwrote:
      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.

      Comment

      • Ben Voigt [C++ MVP]

        #4
        Re: Discrete Cosine Transform in C#?


        <illusion.admin s@gmail.comwrot e in message
        news:5933faaf-d4fd-460a-abde-6b4e3209673a@b1 g2000hsg.google groups.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.


        Comment

        Working...