Files
player/Project/Src/MyApp/fft2d.h
2025-07-05 19:47:28 +08:00

33 lines
589 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef FFT2D_H__
#define FFT2D_H__
typedef struct
{
int fftLen;
arm_rfft_fast_instance_f32 fftStruct;
float32_t *imgBuff; //输出图像
float32_t *rowInBuff; //行输入缓冲
float32_t *columnOutBuff; //列输出缓冲
} FFT2D_Struct;
//初始化
int FFT2D_Init (FFT2D_Struct *fft2d,int len);
//傅里叶变换输出保存在FFT2D_Struct.imgBuff中
void FFT2D_Rfft (FFT2D_Struct *fft2d,float32_t *img,int xsize,int ysize);
//傅里叶逆变换输出保存在FFT2D_Struct.imgBuff中
void FFT2D_Rifft (FFT2D_Struct *fft2d,float32_t *img);
//释放内存
void FFT2D_Delete (FFT2D_Struct *fft2d);
#endif