473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Mar 5 '08 #1
3 8856
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?
Mar 5 '08 #2
On Mar 5, 10:25 am, not_a_commie <notacom...@gmail.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.
Mar 5 '08 #3

<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.
Mar 5 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Francois Vanderseypen | last post by:
Imagine a discrete 2D space of any size. Say, you have a 100x100 pixels (.net) panel and you have discrete cells of 10x10 pixels. Thinking e.g. of the game of life. I would like to draw a line in...
5
by: Mario | last post by:
How do I get the inverse of a cosine, that is, cos(a) = x, I have x and I need to know a? I don't need the hyperbolic inverse, unless I can use it to get the cosine inverse. Greetings, Mario
1
by: Adam | last post by:
Visual basic 6.0 doesn't appear to have Arc Sin or Arc Cosine built in, I'm working on a program that calculated trigonometry and I need to figure out how to substitute something for Arc Cosine or...
0
by: Alison Givens | last post by:
I have the following problem. (VB.NET 2003 with CR) I have a report with a multiple-value discrete value and a rangevalue. The report shows fine in the viewer, but when I hit the export to pdf...
1
by: khaleel.alyasini | last post by:
anyone could point me out where did i do wrong? it seems that i can't get back the original Lena image after the IDCT(inverse discrete cosine transform) process. the output raw image is nothing...
0
by: lrobo01 | last post by:
I'm having a problem with Crystal report.net with ASP.NET. The problem occurs when exporting the report. The report uses a discrete parameter with multiple values. When the report is loaded into...
2
by: IdlePhaedrus | last post by:
Hi, I have a FFT routine that I converted from C++ to VB in a module as follows: Const M_PI = 3.1415926535897931 ' Fast Fourier Transform Public Sub FFT(ByRef rex() As Single, ByRef imx() As...
0
by: pmclinn | last post by:
I'm looking for the complex discrete fourier Transform of this EQ impulse response array. I know the output for the first 3 values: EQ.DFT MAG(floating)) should be 1.066769, 1.040460, 1.063209.......
1
by: Areval | last post by:
Sir, I areval. I am a student and now I'm working on audio compression for my exam. 1. I want to know how the compression takes place in the audio? 2. Finding out how to compress and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.