Add fftshift ,fft with size ,and their test.
This commit is contained in:
@@ -103,9 +103,16 @@ namespace Aurora
|
||||
/**
|
||||
* FFT,支持到2维,输入可以是常数可以是复数,输出必是复数
|
||||
* @param aMatrix 目标矩阵
|
||||
* @param aFFTSize 目标矩阵需要处理的长度,默认为-1即全部
|
||||
* @return fft后的复数矩阵
|
||||
*/
|
||||
Matrix fft(const Matrix &aMatrix);
|
||||
Matrix fft(const Matrix &aMatrix, long aFFTSize = -1);
|
||||
|
||||
/**
|
||||
* fftshift,在原有数据上进行修改,将fft的数据的前半部分和后半部分交换,支持2D数据
|
||||
* @param aMatrix
|
||||
*/
|
||||
void fftshift(Matrix &aMatrix);
|
||||
|
||||
/**
|
||||
* 逆fft,支持到2维,输入必须是复数,输出必是复数
|
||||
|
||||
Reference in New Issue
Block a user