PatchBatchExtractor.hpp

00001 /**************************************************
00002 
00003   PatchBatchExtractor 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 PATCHBATCHEXTRACTOR_HPP
00012 #define PATCHBATCHEXTRACTOR_HPP
00013 
00014 using namespace cv;
00015 using namespace std;
00016 
00022 class PatchBatchExtractor
00023 {
00024 
00025 public:  
00026   PatchOptions         patopt;      
00027   vector<Point3i>      loc;         
00028   Point3i              coff;        
00029   vector<int>          allx;        
00030   vector<int>          ally;        
00031   vector<int>          allz;        
00032   vector<Mat>          patches;     
00033   vector<Mat>          patchesall;     
00034   Range                box_x;       
00035   Range                box_y;       
00036   Range                box_z;       
00037   Point3i              vidsize;     
00038   vector<Point3i>      locall;         
00039   vector<bool>         locall_mask;         
00041 public:  
00049   PatchBatchExtractor(const Mat &vid, const PatchOptions &patopt, 
00050                       const Range &box_z = Range::all(), 
00051                       const Range &box_y = Range::all(), 
00052                       const Range &box_x = Range::all());
00053   ~PatchBatchExtractor();
00054 
00055   // debugging
00057   void dump(ostream &output) const;
00060   void dump_matlab(ostream &output) const;
00064   friend ostream& operator <<(ostream &output, const PatchBatchExtractor &cov);
00065 
00066 
00067   Mat segm_mask(std::vector<int> &oldclasses);
00068 };
00069 
00070 #endif

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