LFMikolajczyk.h 932 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * @file LFMikolajczyk.h
  3. * @brief interface to Mikolajczyk implementation
  4. * @author Erik Rodner
  5. * @date 11/19/2007
  6. */
  7. #ifndef LFMIKOLAJCZYKINCLUDE
  8. #define LFMIKOLAJCZYKINCLUDE
  9. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include "LocalFeatureRepresentation.h"
  15. #include "core/basics/Config.h"
  16. namespace OBJREC {
  17. /** interface to Mikolajczyk implementation */
  18. class LFMikolajczyk : public LocalFeatureRepresentation
  19. {
  20. protected:
  21. std::string c_binaryExecutable;
  22. std::string c_params;
  23. double c_minScale;
  24. int descriptor_size;
  25. public:
  26. /** simple constructor */
  27. LFMikolajczyk( const NICE::Config *conf );
  28. /** simple destructor */
  29. virtual ~LFMikolajczyk();
  30. int getDescSize () const;
  31. int extractFeatures ( const NICE::Image & img, NICE::VVector & features,
  32. NICE::VVector & positions ) const;
  33. };
  34. } // namespace
  35. #endif