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 54 bool readConfig(
const char* fname);
55 int loadPoint(
const char* _filename);
58 int save(
const char * fname, uint8_t bitsperpixel,
uchar* src,
uint px,
uint py);
59 void save(
const char* fname);
72 void DataInit(
int segsize,
int cghwidth,
int cghheight,
float xiinter,
float etainter);
74 void MemoryRelease(
void);
76 void generateHologram();
80 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);
82 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);
84 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);
86 void encodeHologram(
const vec2 band_limit,
const vec2 spectrum_shift);
88 void encoding(
unsigned int ENCODE_FLAG);
104 float *m_SFrequency_cx;
105 float *m_SFrequency_cy;
108 int *m_Coefficient_cx;
109 int *m_Coefficient_cy;
112 unsigned char* cgh_fringe;
117 fftw_complex *m_in, *m_out;
132 #endif // !__ophPAS_h
__managed__ float amplitude
Configuration for Point Cloud.