Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef CINTIMAGE_TO_FEATUREVEC_H_
00034 #define CINTIMAGE_TO_FEATUREVEC_H_
00035
00036
00037 #include <iostream>
00038 #include <string.h>
00039 #include <sstream>
00040 #include <fstream>
00041
00042
00043 #include <time.h>
00044 #include <opencv/cv.h>
00045 #include <CHaarFeature.h>
00046
00047 #define HEIGHTFEATURES 15
00048 #define WIDTHFEATURES 15
00049
00050 using namespace std;
00051 using namespace cv;
00052
00053
00054
00055 class CIntImage_to_Featurevec
00056 {
00057 public:
00058 CHaarFeature * currentfeature;
00059 vector<CHaarFeature> allfeatures;
00060 float intimagemat[HEIGHTFEATURES][WIDTHFEATURES];
00061
00062 string path;
00063 string pathfull_list_of_filenames;
00064 string pathout;
00065 bool goodgps;
00066
00067
00068 void print_heights();
00069 void read_features(string featurespath);
00070 void print_features();
00071 void write_featurevector(string outputpath, int nr_features_without_shaf);
00072 float calc_featurevalue(int nr_feat, int nr_features_without_shaf);
00073
00074
00075 CIntImage_to_Featurevec();
00076 };
00077
00078
00079 #endif