DytexOptions.hpp

00001 /**************************************************
00002 
00003   DytexOptions class
00004 
00005   Antoni Chan,
00006   City University of Hong Kong, Copyright 2014
00007   libdt - OpenCV library for Dynamic Textures - version 1.0
00008 
00009 ***************************************************/
00010 
00011 #ifndef DYTEXOPTIONS_HPP
00012 #define DYTEXOPTIONS_HPP
00013 
00014 using namespace cv;
00015 using namespace std;
00016 
00020 class DytexOptions
00021 {
00022 
00023 public:
00025   enum Ymean_type {ZERO_YMEAN,    
00026                    NONZERO_YMEAN  
00027                    };
00028 
00029   // DT options  
00030   int                 n;    
00031   int                 m;    
00032   CovMatrix::cov_type Ropt; 
00033   CovMatrix::cov_type Sopt; 
00034   Ymean_type          Yopt; 
00036   char* writeToMemory(char *);
00037   char* readFromMemory(char *);
00038   DytexOptions(){}
00040   DytexOptions(int n, int m, CovMatrix::cov_type Ropt, CovMatrix::cov_type Sopt, Ymean_type Yopt);
00041   virtual ~DytexOptions();
00042 
00043   // debugging
00044   
00046   static const char* Ymean_type_to_string(Ymean_type);
00047   
00049   virtual void dump(ostream &output) const;
00050   
00052   virtual void dump_matlab(ostream &output) const;
00053   
00057   friend ostream& operator <<(ostream &output, const DytexOptions &dt);
00058 };
00059 
00060 #endif

Generated on 18 Dec 2014 for libdt-OpenCV by  doxygen 1.6.1