CHaarFeature.h
Go to the documentation of this file.
1 /*
2  * CHaarFeature.h
3  *
4  * Created on: Sep 22, 2011
5  * Author: David Fischinger
6  */
7 
8 #ifndef CHAARFEATURE_H_
9 #define CHAARFEATURE_H_
10 
11 #include <vector>
12 #include <opencv2/opencv.hpp>
13 using namespace std;
14 
16 {
17 public:
18  int nr_reg; //number of regions
19  vector<double> weights;
20  vector<int> regions; //region points are defined w.r.t. the center point for which the feautre value is calculated
21 
22  //constructor for features with 2 regions
23  CHaarFeature(int r1x1, int r1x2, int r1y1, int r1y2, int r2x1, int r2x2, int r2y1, int r2y2, double r1weight, double r2weight );
24  //constructor for features with 3 regions
25  CHaarFeature(int r1x1, int r1x2, int r1y1, int r1y2, int r2x1, int r2x2,int r2y1, int r2y2, int r3x1, int r3x2, int r3y1, int r3y2, double r1weight, double r2weight, double r3weight);
26  //constructor for features with 4 regions
27  CHaarFeature(int r1x1, int r1x2, int r1y1, int r1y2,
28  int r2x1, int r2x2, int r2y1, int r2y2,
29  int r3x1, int r3x2, int r3y1, int r3y2,
30  int r4x1, int r4x2, int r4y1, int r4y2,
31  double r1weight, double r2weight, double r3weight, double r4weight);
32 
33 
34  double calcFval(cv::Mat heightsIntegral, int pos_x, int pos_y);
35 };
36 
37 #endif /* CHAARFEATURE_H_ */
vector< int > regions
Definition: CHaarFeature.h:20
vector< double > weights
Definition: CHaarFeature.h:19


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