// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here //! rcsid="$Id: exFFT1d.cc,v 1.3 2002/01/31 14:55:44 craftit Exp $" //! lib=RavlMath //! file="Ravl/Math/Signals/1D/exFFT1d.cc" #include "Ravl/FFT1d.hh" #include "Ravl/Random.hh" #include "Ravl/Array1dIter.hh" using namespace RavlN; int main() { int size = 16; FFT1dC fft(size); Array1dC data(size); for(Array1dIterC it(data);it;it++) it.Data() = Random1(); cerr << "Doing FFT:\n"; Array1dC res = fft.Apply(data); cerr << "Result:"; cerr << res << "\n"; }