Openholo  v4.2
Open Source Digital Holographic Library
ophDepthMap_GPU.cpp File Reference
#include "ophDepthMap.h"
#include "ophDepthMap_GPU.h"
#include <cuComplex.h>
#include <sys.h>
#include "CUDA.h"
Include dependency graph for ophDepthMap_GPU.cpp:

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...
 

Function Documentation

◆ cudaFFT()

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.

Parameters
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
See also
propagation_AngularSpectrum_GPU, encoding_GPU