28 #ifndef CFeatureExtraction_H
29 #define CFeatureExtraction_H
99 void loadFromConfigFile(
101 const std::string §ion);
105 void dumpToTextStream(
CStream &out)
const;
173 TSURFOptions() : rotation_invariant(true),hessianThreshold(600), nOctaves(2), nLayersPerOctave(4) { }
201 } PolarImagesOptions;
210 } LogPolarImagesOptions;
232 void detectFeatures(
const CImage & img,
234 const unsigned int init_ID = 0,
235 const unsigned int nDesiredFeatures = 0,
256 void computeDescriptors(
269 void findMoreFeatures(
const CImage &img,
272 unsigned int nDesiredFeats = 0)
const;
297 static void detectFeatures_SSE2_FASTER9(
300 const int threshold = 20,
301 bool append_to_list =
false,
303 std::vector<size_t> * out_feats_index_by_row = NULL );
307 static void detectFeatures_SSE2_FASTER10(
310 const int threshold = 20,
311 bool append_to_list =
false,
313 std::vector<size_t> * out_feats_index_by_row = NULL );
317 static void detectFeatures_SSE2_FASTER12(
320 const int threshold = 20,
321 bool append_to_list =
false,
323 std::vector<size_t> * out_feats_index_by_row = NULL );
335 void internal_computeSiftDescriptors(
const CImage &in_img,
343 void internal_computeSurfDescriptors(
const CImage &in_img,
352 void internal_computeSpinImageDescriptors(
const CImage &in_img,
361 void internal_computePolarImageDescriptors(
const CImage &in_img,
370 void internal_computeLogPolarImageDescriptors(
const CImage &in_img,
379 void selectGoodFeaturesKLT(
382 unsigned int init_ID = 0,
383 unsigned int nDesiredFeatures = 0,
384 void *mask_ = NULL)
const;
392 void extractFeaturesKLT(
395 unsigned int init_ID = 0,
396 unsigned int nDesiredFeatures = 0,
408 void extractFeaturesBCD(
411 unsigned int init_ID = 0,
412 unsigned int nDesiredFeatures = 0,
424 void extractFeaturesSIFT(
427 unsigned int init_ID = 0,
428 unsigned int nDesiredFeatures = 0,
440 void extractFeaturesSURF(
443 unsigned int init_ID = 0,
444 unsigned int nDesiredFeatures = 0,
456 void extractFeaturesFAST(
459 unsigned int init_ID = 0,
460 unsigned int nDesiredFeatures = 0,
466 void extractFeaturesFASTER_N(
470 unsigned int init_ID = 0,
471 unsigned int nDesiredFeatures = 0,
483 void* my_scale_space_extrema(
485 int octvs,
int intvls,
double contr_thr,
int curv_thr,
486 void* storage )
const;
491 void my_adjust_for_img_dbl(
void* features )
const;
502 void getTimesExtrema(
void* dog_pyr,
int octvs,
int intvls,
float row,
float col,
unsigned int &nMin,
unsigned int &nMax )
const;
511 double getLaplacianValue(
void* dog_pyr,
int octvs,
int intvls,
float row,
float col )
const;
518 void insertCvSeqInCFeatureList(
void* features,
CFeatureList &list,
unsigned int init_ID = 0 )
const;