fourier.h 940 B

12345678910111213141516171819202122232425262728
  1. /******************************************************************************
  2. 版权所有:
  3. 文件名称: fourier.h
  4. 文件版本: 01.01
  5. 创建作者: sunxi
  6. 创建日期: 2008-07-28
  7. 功能说明: 傅立叶算法头文件。
  8. 其它说明:
  9. 修改记录:
  10. */
  11. #ifndef _FOURIER_H
  12. #define _FOURIER_H
  13. #include "rt_types.h"
  14. extern const int g_fourier_coefficient[3][2][16];
  15. #define FOURIER_HARMONIC_1 ((unsigned int)g_fourier_coefficient) // 基波
  16. #define FOURIER_HARMONIC_2 ((unsigned int)g_fourier_coefficient + 1 * sizeof(g_fourier_coefficient[0])) // 2次谐波
  17. #define FOURIER_HARMONIC_5 ((unsigned int)g_fourier_coefficient + 2 * sizeof(g_fourier_coefficient[0])) // 5次谐波
  18. // void fourier32(short *dots,struct ri_s16 * ri,unsigned int harmonic);
  19. void fourier32(short *dots, short *real_image_pair, unsigned int harmonic);
  20. void fourier32_half(short *dots, struct ri_s16 *ri, unsigned int harmonic);
  21. int fourier_test(void);
  22. #endif