1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /**
- * @file LocalFeatureLFInterface.h
- * @brief interface to LF
- * @author Björn Fröhlich
- * @date 09/07/2010
- */
- #ifndef LocalFeatureLFInterfaceINCLUDE
- #define LocalFeatureLFInterfaceINCLUDE
- #include <vislearning/nice.h>
- #include "core/basics/Config.h"
- #include "LocalFeature.h"
- #include "LocalFeatureRepresentation.h"
- namespace OBJREC {
- /** local feature with LF */
- class LocalFeatureLFInterface : public LocalFeature
- {
- protected:
- LocalFeatureRepresentation *lfpres;
- public:
-
- /** simple constructor */
- LocalFeatureLFInterface ( const NICE::Config *conf, LocalFeatureRepresentation *_lfpres );
-
- /** simple destructor */
- virtual ~LocalFeatureLFInterface();
-
- /**
- * returns the size of each the SIFT-Feature
- * @return 128
- */
- int getDescSize() const { return lfpres->getDescSize(); };
-
- /**
- * get the descriptor
- * @param img input image
- * @param positions positions for the SIFT features
- * @param descriptors output
- * @return 0
- */
- int getDescriptors ( const NICE::Image & img, NICE::VVector & positions, NICE::VVector & descriptors ) const;
-
- /**
- * get the descriptor
- * @param img input color image
- * @param positions positions for the SIFT features
- * @param descriptors output
- * @return 0
- */
- int getDescriptors ( const NICE::ColorImage & img, NICE::VVector & positions, NICE::VVector & descriptors) const;
-
- void visualizeFeatures ( NICE::Image & mark, const NICE::VVector & positions, size_t color ) const;
-
- };
- } // namespace
- #endif
|