HologramDepthmap Library
|
Functions | |
void | HologramGenerator::GenerateHologram () |
Generate a hologram, main funtion. More... | |
void | HologramGenerator::Calc_Holo_by_Depth (int frame) |
Generate a hologram. More... | |
void | HologramGenerator::Calc_Holo_CPU (int frame) |
Main method for generating a hologram on the CPU. More... | |
void | HologramGenerator::Calc_Holo_GPU (int frame) |
Main method for generating a hologram on the GPU. More... | |
void | HologramGenerator::Propagation_AngularSpectrum_CPU (Complex *input_u, double propagation_dist) |
Angular spectrum propagation method for CPU implementation. More... | |
void | HologramGenerator::Propagation_AngularSpectrum_GPU (cufftDoubleComplex *input_u, double propagation_dist) |
Angular spectrum propagation method for GPU implementation. More... | |
|
private |
frame | : the frame number of the image. |
Definition at line 442 of file HologramGenerator.cpp.
|
private |
For each depth level,
The final result is accumulated in the variable 'U_complex_'.
frame | : the frame number of the image. |
Definition at line 117 of file HologramGenerator_CPU.cpp.
|
private |
For each depth level,
It uses CUDA kernels, cudaDepthHoloKernel & cudaPropagation_AngularSpKernel.
The final result is accumulated in the variable 'u_complex_gpu_'.
frame | : the frame number of the image. |
Definition at line 246 of file HologramGenerator_GPU.cpp.
void HologramGenerator::GenerateHologram | ( | ) |
For each frame,
Definition at line 261 of file HologramGenerator.cpp.
|
private |
The propagation results of all depth levels are accumulated in the variable 'U_complex_'.
input_u | : each depth plane data. |
propagation_dist | : the distance from the object to the hologram plane. |
Definition at line 186 of file HologramGenerator_CPU.cpp.
|
private |
The propagation results of all depth levels are accumulated in the variable 'u_complex_gpu_'.
input_u | : each depth plane data. |
propagation_dist | : the distance from the object to the hologram plane. |
Definition at line 311 of file HologramGenerator_GPU.cpp.