Openholo
v4.2
Open Source Digital Holographic Library
|
#include "ophDepthMap.h"
#include "ophDepthMap_GPU.h"
#include <cuComplex.h>
#include <sys.h>
#include "CUDA.h"
Go to the source code of this file.
Functions | |
void | cudaFFT (CUstream_st *stream, int nx, int ny, cufftDoubleComplex *in_filed, cufftDoubleComplex *output_field, int direction, bool bNormalized) |
Convert data from the spatial domain to the frequency domain using 2D FFT on GPU. More... | |
void cudaFFT | ( | CUstream_st * | stream, |
int | nx, | ||
int | ny, | ||
cufftDoubleComplex * | in_filed, | ||
cufftDoubleComplex * | output_field, | ||
int | direction, | ||
bool | bNormalized | ||
) |
Convert data from the spatial domain to the frequency domain using 2D FFT on GPU.
call CUDA Kernel - fftShift and CUFFT Library.
stream | : CUDA Stream |
nx | : the number of column of the input data |
ny | : the number of row of the input data |
in_field | : input complex data variable |
output_field | : output complex data variable |
direction | : If direction == -1, forward FFT, if type == 1, inverse FFT. |
bNormalized | : use normalize |