46 #ifndef __ophSimulator_h 47 #define __ophSimulator_h 49 #define _USE_MATH_DEFINES 83 bool SetResolution(ivec2 resolution);
84 bool SetResolution(
int width,
int height);
85 bool SetPixelPitch(vec2 size);
86 bool SetPixelPitch(
Real width,
Real height);
87 bool SetWaveLength(
Real waveLength);
88 bool SetDistance(
Real distance);
89 bool SetWaveNum(
int nNum);
90 bool Save(
char *path);
91 bool Encode(
int option);
93 bool GenerateHologram();
95 void Normalize(T *src,
uchar *dst,
int width,
int height);
103 vector<vec3> m_vecPoints;
104 vector<vec2> m_vecPlanes;
105 vector<Real> m_vecAmplitude;
110 #endif // !__ophSimulator_h
Openholo Point Cloud based Compter-generated holography.
__managed__ float amplitude