Re: FFT VS DCT



On Thu, 26 Apr 2007 11:51:25 -0800, glen herrmannsfeldt
<gah@xxxxxxxxxxxxxxxx> wrote:

senthil_lsk wrote:

I see that all are asking why DCT is better than FFT or DFT.
Where FFT is prepered than DCT? Why ? Is it only for phase information?

The difference is boundary conditions. FFT (or DFT) has periodic
boundary conditions. DST has f(0)=f(L)=0, DCT has f'(0)=f'(L)=0.
For image processing the DCT boundary conditions are less noticeable.

(There is an explanation in Numerical Recipes, among others.)

-- glen

And then there's the Hartley transform, which uses cas(x)= sin(x) +
cos(x) as the basis function. The DHT has some interesting
properties of its own and is real-input real-output like the DST and
DCT.

7r4n5f0rm5 R fun!

Eric Jacobsen
Minister of Algorithms
Abineau Communications
http://www.ericjacobsen.org
.



Relevant Pages

  • 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: Computing DFT of a signal from its DCT coefficients?
    ... signal x, but what we really want is the N-point DFT of x, Xdft. ... between DFT and DCT. ... 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. ...
    (comp.dsp)
  • Re: A question on DCT
    ... Can someone please clarify what they mean by "Energy compaction"? ... the boundary conditions are different. ... the boundary, DCT has the derivative go to zero, and DFT has periodic ...
    (comp.dsp)
  • Re: FFT VS DCT
    ... For image processing the DCT boundary conditions are less noticeable. ... frequency bins at the DCT output, ...
    (comp.dsp)
  • Re: FFT VS DCT
    ... Is it only for phase information? ... FFT (or DFT) has periodic ... For image processing the DCT boundary conditions are less noticeable. ...
    (comp.dsp)

Loading