24 #ifndef __FIREVISION_CLASSIFIERS_SURF_H_ 25 #define __FIREVISION_CLASSIFIERS_SURF_H_ 28 # error SURF not available, you may not use the SurfClassifier 33 #include <fvclassifiers/classifier.h> 36 #include <surf/ipoint.h> 37 #include <surf/image.h> 40 #include <utils/time/clock.h> 41 #include <utils/time/tracker.h> 44 #define OFFLINE_SURF true // offline reading - reading from descriptors folder 45 #define MIN_MATCH_RATIO 0.05 61 void saveIpoints(std::string sFileName,
const std::vector< surf::Ipoint >& ipts,
bool bVerbose,
bool bLaplacian,
int VLength);
63 void loadIpoints(std::string sFileName, std::vector< surf::Ipoint >& ipts,
bool bVerbose,
int&);
70 unsigned int min_match = 5,
71 float min_match_ratio = MIN_MATCH_RATIO,
75 bool doubleImageSize =
false,
78 bool extended =
false,
83 unsigned int min_match = 5,
84 float min_match_ratio = MIN_MATCH_RATIO,
88 bool doubleImageSize =
false,
91 bool extended =
false,
96 virtual std::list< ROI > * classify();
100 unsigned int __num_obj;
103 int findMatch(
const surf::Ipoint& ip1,
const std::vector< surf::Ipoint >& ipts);
106 double distSquare(
double *v1,
double *v2,
int n);
109 surf::Image *__obj_img;
110 std::vector<std::vector< surf::Ipoint > > __obj_features;
111 std::vector<std::string> __obj_names;
112 int __obj_num_features;
115 surf::Image *__image;
116 std::vector< surf::Ipoint > __img_features;
117 int __img_num_features;
120 unsigned int __min_match;
122 float __min_match_ratio;
131 bool __doubleImageSize;
146 unsigned int __loop_count;
147 unsigned int __ttc_objconv;
148 unsigned int __ttc_objfeat;
149 unsigned int __ttc_imgconv;
150 unsigned int __ttc_imgfeat;
151 unsigned int __ttc_matchin;
152 unsigned int __ttc_roimerg;
Fawkes library namespace.
Classifier to extract regions of interest.