Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Discrete Cosine Transform in C#?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
illusion.admins@gmail.com - 05 Mar 2008 14:50 GMT
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 - 05 Mar 2008 15:25 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?
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.
Ben Voigt [C++ MVP] - 05 Mar 2008 18:45 GMT
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.