8 #define NUMTBL2 (NUMTBL-1) 10 #define FFT_SEGMENT_SIZE 64 25 void CreateLookupTables();
26 void CalcSpatialFrequency(
Point* pt,
Real lambda,
bool accurate =
false);
27 void CalcCompensatedPhase(
Point* pt,
Real amplitude,
Real phase,
Real lambda,
bool accurate =
false);
33 void setAccurate(
bool accurate) { this->is_accurate = accurate; }
35 bool readConfig(
const char* fname);
36 int loadPoint(
const char* _filename);
38 void generateHologram();
40 void encodeHologram(
const vec2 band_limit,
const vec2 spectrum_shift);
41 void encoding(
unsigned int ENCODE_FLAG);
51 Real* compensation_cx;
52 Real* compensation_cy;
void setAccurate(bool accurate)
structure for 2-dimensional Real type vector and its arithmetic.
Configuration for Point Cloud.