public class CUDAFFTVolumeHandle extends FFTVolumeHandle
Modifier and Type | Class and Description |
---|---|
static class |
CUDAFFTVolumeHandle.CUFFTResult |
Constructor and Description |
---|
CUDAFFTVolumeHandle(VolumeOperator operator) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Cleans up the memory.
|
void |
forwardTransform(jcuda.Pointer deviceX,
int[] size)
Performs a forward 3-D FFT on the given volume in the CUDA memory.
|
void |
forwardTransform(Volume3D vol)
Performs a forward Fast Fourier Transform of the Volume
|
static CUDAFFTVolumeHandle.CUFFTResult |
getResultEnum(int i) |
void |
inverseTransform(jcuda.Pointer deviceX,
int[] size)
Performs an inverse 3-D FFT on the CUDA device memory pointed to by deviceX.
|
void |
inverseTransform(Volume3D vol)
Performs a normalized inverse Fast Fourier Transform of the Volume
|
void |
setThreadNumber(int number)
Sets the maximal number of threads used for the FFT.
|
static float[] |
toCUDAFormat(float[][][] hostVolume) |
static float[][][] |
toHostFormat(float[] cuda,
int[] size) |
setVolumeOperator
public CUDAFFTVolumeHandle(VolumeOperator operator)
public static CUDAFFTVolumeHandle.CUFFTResult getResultEnum(int i)
public static float[][][] toHostFormat(float[] cuda, int[] size)
public static float[] toCUDAFormat(float[][][] hostVolume)
public void forwardTransform(jcuda.Pointer deviceX, int[] size) throws java.lang.Exception
deviceX
- the Pointer to the device's memorysize
- the sizes of the volumejava.lang.Exception
- may happen.public void forwardTransform(Volume3D vol)
FFTVolumeHandle
forwardTransform
in class FFTVolumeHandle
vol
- the Volumepublic void inverseTransform(jcuda.Pointer deviceX, int[] size) throws java.lang.Exception
deviceX
- the device pointersize
- the sizes of the volume.java.lang.Exception
- may happen.public void inverseTransform(Volume3D vol)
FFTVolumeHandle
inverseTransform
in class FFTVolumeHandle
vol
- the Volumepublic void cleanUp()
FFTVolumeHandle
cleanUp
in class FFTVolumeHandle
public void setThreadNumber(int number)
FFTVolumeHandle
setThreadNumber
in class FFTVolumeHandle