Openholo  v5.0
Open Source Digital Holographic Library
ophIFTA.h
Go to the documentation of this file.
1 #pragma once
2 #include "ophGen.h"
3 
4 class GEN_DLL ophIFTA : public ophGen
5 {
6 public:
7  explicit ophIFTA();
8  virtual ~ophIFTA();
9  Real generateHologram();
10  bool readConfig(const char* fname);
11  bool readImage(const char* fname, bool bRGB);
12  bool normalize();
13  void encoding(unsigned int ENCODE_FLAG, unsigned int SSB_PASSBAND);
14  uchar getMax(uchar *src, int width, int height);
15  //Real getDistance() { return m_distance; };
16  void setConfig(OphIFTAConfig config) { m_config = config; }
17  OphIFTAConfig& getConfig() { return m_config; }
18  uint* getProgress() { return &m_nProgress; }
19 
20 private:
21  vec2 ss;
22  vec2 pp;
23  ivec2 pn;
24 
25  uchar* imgRGB;
26  uchar* imgDepth;
27  uchar* imgOutput;
28  Real nearDepth;
29  Real farDepth;
30  int nIteration;
31  int nDepth;
32  uint m_nProgress;
33 
34  int width;
35  int height;
36  int bytesperpixel;
37 
38  OphIFTAConfig m_config;
39 };
40 
bytesperpixel
Definition: Openholo.cpp:431
ENCODE_FLAG
Definition: ophGen.h:84
SSB_PASSBAND
Definition: ophGen.h:295
unsigned char uchar
Definition: typedef.h:64
float Real
Definition: typedef.h:55
structure for 2-dimensional integer vector and its arithmetic.
Definition: ivec.h:66
Definition: ophIFTA.h:4
void normalize(void)
Normalization function to save as image file after hologram creation.
Definition: ophGen.cpp:654
uint * getProgress()
Definition: ophIFTA.h:18
#define GEN_DLL
Definition: ophGen.h:61
structure for 2-dimensional Real type vector and its arithmetic.
Definition: vec.h:66
void setConfig(OphIFTAConfig config)
Definition: ophIFTA.h:16
OphIFTAConfig & getConfig()
Definition: ophIFTA.h:17
bool readConfig(const char *fname)
load to configuration file.
Definition: ophGen.cpp:221
void encoding()
Definition: ophGen.cpp:962
unsigned int uint
Definition: typedef.h:62
Definition: ophGen.h:76