Re: Computing DFT of a signal from its DCT coefficients?



crazydspguy wrote:

I have the following question regarding obtaining the DFT of a signal
directly from its DCT representation:

Say we are given the N-point DCT coefficients Xdct(k) of some real-valued
signal x(n), but what we really want is the N-point DFT of x(n), Xdft(k).

There might be. I would read the description in Numerical Recipes, which describes the differences, especially in boundary conditions,
between DFT and DCT.

I need to obtain the power spectrum of the signal x(n) in the DFT domain,
but I only have the DCT domain information.

For real source data and 2N input values, DFT gives you N sine (imaginary) terms and N (real) cosine terms. DCT gives you 2N cosine terms. I haven't gone through the math, but there might be some trig. identities between those terms.

Note, though, that there are some that don't exist in one or the other,
that is, they are fundamentally different. The DCT boundary condition is that the derivative is zero at the ends, the DST has the function going to zero at the ends, where the DFT is a compromise between the two, with periodic boundary conditions.

You can go from a 2N point DCT to a 4N point DFT, where half the terms are zero, and consider that a DFT domain power spectrum. The terms
that are zero are those that are not allowed by the DCT boundary conditions. If they were supposed to be in the power spectrum, were lost by the DCT operation.

-- glen

.



Relevant Pages

  • Re: dft : property of symmetry for real & even seq
    ... you should use a discrete cosine transform (DCT). ... is why people normally have a complex-output DFT (even if they have ... positive frequencies (as I understand it when the time domain samples ... The relationship between the real DFT polar form and the complex DFT ...
    (comp.dsp)
  • Re: DFT und DCT
    ... Wie die DFT und die DCT berechnet werden, ... DFT: Weshalb wird eigentlich eine komplexe Basis verwendet (an Stelle ... um ein Signal aus Zeit-/Raumbereich in den Frequenzbereich ... Wie entscheidet man, welche Transformation man braucht? ...
    (de.sci.mathematik)
  • Re: Query DCT and DFT
    ... So to compute the fourier series, ... For DFT, ... For DCT, the sequence is mirrored and then ... applications) or of type-I corresponds to even boundary conditions at ...
    (sci.image.processing)
  • Re: DCT by convolution and convolution theorem ?
    ... > Cpu-eme coefficient of a n point DCT on the signal S with pixel ... > to write Cp as a convolution product: ... > equation a DFT of G and obtain a relation as describe in lots of book by ...
    (sci.image.processing)
  • Re: A question on DCT
    ... and Noll have a plot that shows this. ... it seems to me it depends on how the boundary conditions agree with the data. ... DST has the function go to zero at ... the boundary, DCT has the derivative go to zero, and DFT has periodic ...
    (comp.dsp)