HologramDepthmap Library
Encoding
void HologramGenerator::Encoding_Symmetrization (ivec2 sig_location)
 Encode the CGH according to a signal location parameter. More...
 
void HologramGenerator::encoding_CPU (int cropx1, int cropx2, int cropy1, int cropy2, ivec2 sig_location)
 Encode the CGH according to a signal location parameter on the CPU. More...
 
void HologramGenerator::encoding_GPU (int cropx1, int cropx2, int cropy1, int cropy2, ivec2 sig_location)
 Encode the CGH according to a signal location parameter on GPU. More...
 

Detailed Description

Function Documentation

◆ encoding_CPU()

void HologramGenerator::encoding_CPU ( int  cropx1,
int  cropx2,
int  cropy1,
int  cropy2,
ivec2  sig_location 
)
private

The CPU variable, u255_fringe_ on CPU has the final result.

Parameters
cropx1: the start x-coordinate to crop.
cropx2: the end x-coordinate to crop.
cropy1: the start y-coordinate to crop.
cropy2: the end y-coordinate to crop.
sig_location: ivec2 type, sig_location[0]: upper or lower half, sig_location[1]:left or right half.
See also
Encoding_Symmetrization, fftwShift

Definition at line 231 of file HologramGenerator_CPU.cpp.

◆ encoding_GPU()

void HologramGenerator::encoding_GPU ( int  cropx1,
int  cropx2,
int  cropy1,
int  cropy2,
ivec2  sig_location 
)
private

The variable, u255_fringe_ has the final result.

Parameters
cropx1: the start x-coordinate to crop.
cropx2: the end x-coordinate to crop.
cropy1: the start y-coordinate to crop.
cropy2: the end y-coordinate to crop.
sig_location: ivec2 type, sig_location[0]: upper or lower half, sig_location[1]:left or right half.
See also
Encoding_Symmetrization, cudaCropFringe, cudaFFT, cudaGetFringe

Definition at line 338 of file HologramGenerator_GPU.cpp.

◆ Encoding_Symmetrization()

void HologramGenerator::Encoding_Symmetrization ( ivec2  sig_location)
private
Parameters
sig_location: ivec2 type, sig_location[0]: upper or lower half, sig_location[1]:left or right half.
See also
encoding_CPU, encoding_GPU

Definition at line 481 of file HologramGenerator.cpp.