123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /**
- * @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 "core/vector/VectorT.h"
- #include "core/vector/MatrixT.h"
- #include "core/image/ImageT.h"
- #include "core/basics/Config.h"
- #include "vislearning/features/localfeatures/LocalFeatureSift.h"
- 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 NICE::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,
- NICE::VVector & positions,
- NICE::VVector & descriptors ) const;
- };
- } // namespace
- #endif
|