Fourier.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // C++ Interface: Fourier
  3. //
  4. // Description:
  5. //
  6. //
  7. // Author: Michael Koch <Koch.Michael@uni-jena.de>, (C) 2009
  8. //
  9. // Copyright: See COPYING file that comes with this distribution
  10. //
  11. /**
  12. * @file Fourier.h
  13. * @brief Fourier Transformation of Float Images
  14. * @author Michael Koch
  15. * @date Fr Jul 24 2009
  16. */
  17. #ifndef NICE_Fourier_INCLUDE
  18. #define NICE_Fourier_INCLUDE
  19. #include "core/image/ImageT.h"
  20. #ifdef NICE_USELIB_ICE
  21. namespace NICE {
  22. class Fourier
  23. {
  24. public:
  25. /**
  26. * @param space_real real image in signalspace
  27. * @param space_imag imaginary image in signalspace
  28. * @param freq_real real image in frequencyspace
  29. * @param freq_imag imaginary image in frequencyspace
  30. */
  31. static void FourierTransform (FloatImage &space_real, FloatImage &space_imag, FloatImage &freq_real, FloatImage &freq_imag );
  32. /**
  33. * @param freq_real real image in frequencyspace
  34. * @param freq_imag imaginary image in frequencyspace
  35. * @param space_real real image in signalspace
  36. * @param space_imag imaginary image in signalspace
  37. */
  38. static void FourierTransformInverse (NICE::FloatImage &freq_real, NICE::FloatImage &freq_imag,NICE::FloatImage &space_real, NICE::FloatImage &space_imag);
  39. /**
  40. * Cross Correlation of two FloatImages
  41. * @param img1 Image 1
  42. * @param img2 Image 2
  43. * @param cc Crosscorrelation of Image 1 and Image 2
  44. */
  45. static void CrossCorrelation(const NICE::FloatImage &img1,const NICE::FloatImage &img2, NICE::FloatImage &cc);
  46. };
  47. }//namespace
  48. #endif
  49. #endif