Openholo  v5.0
Open Source Digital Holographic Library
ophACPAS.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef __ophACPAS_h
4 #define __ophACPAS_h
5 
6 #include "ophGen.h"
7 
8 #define NUMTBL 1024
9 #define NUMTBL2 (NUMTBL-1)
10 #define FFT_SEG_SIZE 64
11 #define SEG_SIZE 8
12 
13 using namespace oph;
14 
15 class GEN_DLL ophACPAS : public ophGen
16 {
17 public:
18  explicit ophACPAS();
19 protected:
20  virtual ~ophACPAS();
21 
22 public:
23  bool readConfig(const char* fname);
24  int loadPointCloud(const char* pc_file);
25  int save(const char * fname, uint8_t bitsperpixel, uchar* src, uint px, uint py);
26 
27  void DataInit();
28  int ACPASCalcuation(unsigned char *cghfringe); // ÆÐÅÏ°è»ê void ACPAS(); double *m_pHologram; float m_COStbl[NUMTBL]; float m_SINtbl[NUMTBL]; private: int n_points; OphPointCloudConfig pc_config_; OphPointCloudData pc_data_; CGHEnvironmentData env; }; #endif // !__ophPAS_h
29  void ACPAS();
30 
31  double *m_pHologram;
32 
33  float m_COStbl[NUMTBL];
34  float m_SINtbl[NUMTBL];
35 private:
36  int n_points;
37  OphPointCloudConfig pc_config_;
38  OphPointCloudData pc_data_;
39  CGHEnvironmentData env;
40 };
41 
42 
43 
44 #endif // !__ophPAS_h
unsigned char uchar
Definition: typedef.h:64
#define NUMTBL
Definition: ophACPAS.h:8
double * m_pHologram
Definition: ophACPAS.h:31
#define GEN_DLL
Definition: ophGen.h:61
Configuration for Point Cloud.
Definition: ophGen.h:546
Data for Point Cloud.
Definition: ophGen.h:573
Definition: Bitmap.h:49
unsigned int uint
Definition: typedef.h:62
Definition: ophGen.h:76