49 #define _USE_MATH_DEFINES 54 #define RECON_DLL __declspec(dllexport) 56 #define RECON_DLL __declspec(dllimport) 69 #define OPH_Bitsperpixel 8 //24 // 3byte=24 71 #define OPH_Compression 0 72 #define OPH_Xpixelpermeter 0x130B //2835 , 72 DPI 73 #define OPH_Ypixelpermeter 0x130B //2835 , 72 DPI 74 #define OPH_Pixel 0xFF 139 const vec3&
getScale() {
return wrp_config_.scale; }
144 void setScale(vec3 scale) { wrp_config_.scale = scale; }
157 virtual int loadPointCloud(
const char* pc_file);
166 virtual bool readConfig(
const char* fname);
168 double calculateWRPCPU(
void);
169 void calculateWRPGPU(
void);
177 void generateHologram(
void);
182 Complex<Real>** calculateMWRP(
void);
195 void setViewingWindow(
bool is_ViewingWindow);
203 Complex<Real>* ophWRP::calSubWRP(
double d, oph::Complex<Real>* wrp,
OphPointCloudData* sobj);
205 void addPixel2WRP(
int x,
int y, oph::Complex<Real>
temp);
206 void addPixel2WRP(
int x,
int y, oph::Complex<Real>
temp, oph::Complex<Real>* wrp);
208 virtual void ophFree(
void);
210 Real fieldLens = this->getFieldLens();
211 return -fieldLens * pt / (pt - fieldLens);
214 void transVW(
Real* dst,
Real *src,
int size);
219 Complex<Real>* p_wrp_;
226 bool is_ViewingWindow;
void setLocation(Real location)
const int & getNumOfWRP()
Complex< Real > * getWRPBuff(void)
void setDistance(Real distance)
void setScale(vec3 scale)
const Real & getLocation()
const Real & getFieldLens()
const Real & getDistance()