1 #ifndef __ophNonHogelLF_h 2 #define __ophNonHogelLF_h 32 inline void setNumImage(
int nx,
int ny) { num_image[
_X] = nx; num_image[
_Y] = ny; }
34 inline void setResolImage(
int nx,
int ny) { resolution_image[
_X] = nx; resolution_image[
_Y] = ny; }
55 bool readConfig(
const char* fname);
64 int loadLF(
const char* directory,
const char* exten);
72 void generateHologram();
73 void generateHologram(
double thetaX,
double thetaY);
76 void writeIntensity_gray8_bmp(
const char* fileName,
int nx,
int ny,
Complex<Real>* complexvalue,
int k = -1);
86 void setViewingWindow(
bool is_ViewingWindow);
92 void convertLF2ComplexFieldUsingNonHogelMethod();
93 void makeRandomWField();
94 void makePlaneWaveWField(
double thetaX,
double thetaY);
95 void fourierTransformOverUVLF();
106 ivec2 resolution_image;
107 Real distanceRS2Holo;
109 bool is_ViewingWindow;
120 const char* LF_directory;
void setResolImage(ivec2 num)
void setResolImage(int nx, int ny)
structure for 2-dimensional integer vector and its arithmetic.
void setNumImage(ivec2 num)
void setDistRS2Holo(Real dist)
virtual ~ophNonHogelLF(void)
Destructor.
void setNumImage(int nx, int ny)
void setFieldLens(Real lens)