Re: FFT VS DCT



cincydsp@xxxxxxxxx writes:

On Apr 26, 3:51 pm, glen herrmannsfeldt <g...@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

I've read that the DCT is preferable for data compression applications
because it has good energy-compaction properties; that is, when
applying the DCT to a signal, a higher ratio of the energy is
concentrated in a small number of coefficients relative to the DFT or
other similar transforms. Therefore, it's possible to throw away more
frequency bins at the DCT output, resulting in better compression. I'm
not sure if this is something that is mathematically proven, or if
it's just an empirical observation.

I've heard this as well. The Wikipedia article

http://en.wikipedia.org/wiki/Discrete_cosine_transform

seems to have some relevent information on this aspect.
--
% Randy Yates % "She's sweet on Wagner-I think she'd die for Beethoven.
%% Fuquay-Varina, NC % She love the way Puccini lays down a tune, and
%%% 919-577-9882 % Verdi's always creepin' from her room."
%%%% <yates@xxxxxxxx> % "Rockaria", *A New World Record*, ELO
http://home.earthlink.net/~yatescr
.



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
    ... Where FFT is prepered than DCT? ... FFT (or DFT) has periodic ... For image processing the DCT boundary conditions are less noticeable. ...
    (comp.dsp)

Loading