12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /**
- * @file LocalFeatureRGBSift.h
- * @brief local feature with color sift
- * @author Björn Fröhlich
- * @date 03/10/2012 (Eric Bach)
- */
- #ifndef LocalFeatureRGBSiftINCLUDE
- #define LocalFeatureRGBSiftINCLUDE
- #include "vislearning/baselib/Config.h"
- #include "vislearning/features/localfeatures/LocalFeatureSift.h"
- #include "vislearning/features/localfeatures/sift.h"
- #ifdef NICE_USELIB_OPENMP
- #include <omp.h>
- #endif
- #include <iostream>
- namespace OBJREC {
- /** local feature with sift */
- class LocalFeatureRGBSift : public LocalFeatureSift
- {
- protected:
- int octaves;
- int levels;
- bool normalizeFeature;
- int first_octave;
- double magnif;
- public:
-
- /** simple constructor */
- LocalFeatureRGBSift ( const Config *conf );
-
- /** simple destructor */
- virtual ~LocalFeatureRGBSift();
-
- /**
- * returns the size of each the SIFT-Feature
- * @return 128
- */
- int getDescSize() const { return 384; };
-
- /**
- * get the descriptor
- * @param img input color image
- * @param positions positions for the SIFT features
- * @param descriptors output
- * @return 0
- */
- virtual int getDescriptors ( const NICE::ColorImage & cimg,
- VVector & positions,
- VVector & descriptors ) const;
- };
- } // namespace
- #endif
|