Home | History | Annotate | Download | only in src
      1 #pragma once
      2 
      3 typedef struct
      4 {
      5     int first;
      6     int ntrees;
      7     float threshold;
      8 } HaarStage;
      9 
     10 typedef struct
     11 {
     12     int featureIdx;
     13     float threshold;
     14     float left;
     15     float right;
     16 } HaarStump;
     17 
     18 
     19 typedef struct optFe
     20 {
     21     int ofs0[4];
     22     int ofs1[4];
     23     int ofs2[4];
     24     float weight[4];
     25 } HaarOptFeature;
     26 
     27 typedef struct Fe
     28 {
     29     int x[3];
     30     int y[3];
     31     int width[3];
     32     int height[3];
     33     float weight0;
     34     float weight1;
     35     float weight2;
     36 } HaarFeature;
     37 
     38 typedef struct hr
     39 {
     40     int x;
     41     int y;
     42     int width;
     43     int height;
     44 } HaarRect;
     45 
     46 typedef struct
     47 {
     48     int sqofs;
     49     int nofs[4];
     50     HaarRect nrect;
     51     double normRectArea;
     52     HaarStump* stumps;
     53     HaarStage* stages;
     54     HaarOptFeature* haarOptFeatures;
     55     HaarFeature* haarFeatures;
     56     int stagesSize;
     57     int nFeatures;
     58     int nStumps;
     59 } HaarVars;