CIntImage_to_Featurevec.h
Go to the documentation of this file.
1 /*
2  * David Fischinger -TUW
3  * 18.11.2011
4  *
5  * CLASS for calculating Feature Vector from Integral images
6  *
7  * OUTDATED!!!!!
8  *
9  * USAGE:
10  * - generate ListOfIIFilenames.txt in correct folder
11  * - change all Parameters
12  * - execute
13  *
14  *
15  * input:
16  * Filenames (generated with: "ls pcd* -1 > ListOfIIFilenames.txt"
17  * executed in IntegralImages folder)
18  * with integral images and filename with features
19  *
20  * output:
21  * One file for each integral images including all feature values (1 value for each feature) is saved in the given output folder.
22  *
23  * PARAMETERS:
24  *
25  * HEIGHTFEATURES 15 (14+1)
26  * WIDTHFEATURES 15 (14+1)
27  * pathout = "/home/grasp/David/GPDatabase/badgps/twocams/featurevec/";
28  * goodgps indicates if features for good or bad GPs are calculated => label +1/-1 in output .txt
29  * path = "/opt/ros/privat/stacks/toolsdf/CeditFeatures_input.txt"; //file with Haar-Features
30  */
31 
32 
33 #ifndef CINTIMAGE_TO_FEATUREVEC_H_
34 #define CINTIMAGE_TO_FEATUREVEC_H_
35 
36 //#include <boost/thread/thread.hpp>
37 #include <iostream>
38 #include <string.h>
39 #include <sstream>
40 #include <fstream>
41 
42 //#include "CIntegralImage.cpp"
43 #include <time.h>
44 //#include <opencv/cv.h>
45 #include <CHaarFeature.h>
46 
47 #define HEIGHTFEATURES 15
48 #define WIDTHFEATURES 15
49 
50 using namespace std;
51 //using namespace cv;
52 
53 
54 
56 {
57 public:
58  CHaarFeature * currentfeature; //number of regions
59  vector<CHaarFeature> allfeatures;
60  float intimagemat[HEIGHTFEATURES][WIDTHFEATURES];
61  //PARAMETERS
62  string path;
64  string pathout;
65  bool goodgps;
66 
67 
68  void print_heights();
69  void read_features(string featurespath);
70  void print_features();
71  void write_featurevector(string outputpath, int nr_features_without_shaf);
72  float calc_featurevalue(int nr_feat, int nr_features_without_shaf);
73 
74 
76 };
77 
78 
79 #endif /* CINTIMAGE_TO_FEATUREVEC_H_ */
#define WIDTHFEATURES
vector< CHaarFeature > allfeatures
#define HEIGHTFEATURES


haf_grasping
Author(s): David Fischinger
autogenerated on Mon Jun 10 2019 13:28:43