46 #ifndef __ophLightField_h 47 #define __ophLightField_h 100 explicit ophLF(
void);
111 inline void setResolImage(
int nx,
int ny) { resolution_image[
_X] = nx; resolution_image[
_Y] = ny; }
119 inline vector<uchar*>
getLF() {
return m_vecImages; }
120 inline vector<Complex<Real>*>
getRSPlane() {
return m_vecRSplane; }
132 bool readConfig(
const char* fname);
141 int loadLF(
const char* directory,
const char* exten);
148 void generateHologram();
151 void writeIntensity_gray8_bmp(
const char* fileName,
int nx,
int ny,
Complex<Real>* complexvalue,
int k = -1);
161 void setViewingWindow(
bool is_ViewingWindow);
167 void convertLF2ComplexField();
170 void convertLF2ComplexField_GPU();
176 ivec2 resolution_image;
177 Real distanceRS2Holo;
179 bool is_ViewingWindow;
181 std::vector<int> m_vecImgSize;
182 std::vector<uchar*> m_vecImages;
183 std::vector<Complex<Real>*> m_vecRSplane;
vector< Complex< Real > * > getRSPlane()
void setNumImage(int nx, int ny)
structure for 2-dimensional integer vector and its arithmetic.
Openholo Light Field based CGH generation.
void setNumImage(ivec2 num)
virtual ~ophLF(void)
Destructor.
vector< uchar * > getLF()
void setDistRS2Holo(Real dist)
void setResolImage(ivec2 num)
void setResolImage(int nx, int ny)
void setFieldLens(Real lens)