9 #define PI (3.14159265358979323846f) 10 #define M2_PI (PI*2.0) 11 #define RADIANS (PI/180.0) // Angle in radians 13 #define DEGREE2 (180./PI) // sin(RADIANS*DEGREE*asin(mytheta)) 16 #define NUMTBL2 (NUMTBL-1) 17 #define MAX_STR_LEN 4000 19 #define FFT_SEGMENT_SIZE 64 38 bool readConfig(
const char* fname);
39 int loadPoint(
const char* _filename);
47 void DataInit(
int segsize,
int cghwidth,
int cghheight,
float xiinter,
float etainter);
49 void MemoryRelease(
void);
51 void generateHologram();
53 void CalcSpatialFrequency(
float cx,
float cy,
float cz,
float amp,
int segnumx,
int segnumy,
int segsize,
int hsegsize,
float sf_base,
float * xc,
float * yc,
float * sf_cx,
float * sf_cy,
int * pp_cx,
int * pp_cy,
int * cf_cx,
int * cf_cy,
float xiint,
float etaint,
OphPointCloudConfig& conf);
55 void CalcCompensatedPhase(
float cx,
float cy,
float cz,
float amp,
int segnumx,
int segnumy,
int segsize,
int hsegsize,
float sf_base,
float *xc,
float *yc,
int *cf_cx,
int *cf_cy,
float *COStbl,
float *SINtbl,
float **inRe,
float **inIm,
OphPointCloudConfig& conf);
57 void RunFFTW(
int segnumx,
int segnumy,
int segsize,
int hsegsize,
float **inRe,
float **inIm, fftw_complex *in, fftw_complex *out, fftw_plan *plan,
double *pHologram,
OphPointCloudConfig& conf);
59 void encodeHologram(
const vec2 band_limit,
const vec2 spectrum_shift);
60 void encoding(
unsigned int ENCODE_FLAG);
79 float *m_SFrequency_cx;
80 float *m_SFrequency_cy;
83 int *m_Coefficient_cx;
84 int *m_Coefficient_cy;
87 unsigned char* cgh_fringe;
91 fftw_complex *m_in, *m_out;
126 double FrequencySlope;
128 #endif // !__ophPAS_h struct GEN_DLL _Voxel Voxel
structure for 2-dimensional Real type vector and its arithmetic.
Configuration for Point Cloud.