LFMikolajczyk.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "core/image/ImageT.h"
  12. #include "LocalFeatureRepresentation.h"
  13. #include "core/basics/Config.h"
  14. namespace OBJREC {
  15. /** interface to Mikolajczyk implementation */
  16. class LFMikolajczyk : public LocalFeatureRepresentation
  17. {
  18. protected:
  19. std::string c_binaryExecutable;
  20. std::string c_params;
  21. double c_minScale;
  22. int descriptor_size;
  23. public:
  24. /** simple constructor */
  25. LFMikolajczyk( const NICE::Config *conf );
  26. /** simple destructor */
  27. virtual ~LFMikolajczyk();
  28. int getDescSize () const;
  29. int extractFeatures ( const NICE::Image & img, NICE::VVector & features,
  30. NICE::VVector & positions ) const;
  31. ///////////////////// INTERFACE PERSISTENT /////////////////////
  32. // interface specific methods for store and restore
  33. ///////////////////// INTERFACE PERSISTENT /////////////////////
  34. /**
  35. * @brief Load object from external file (stream)
  36. * @author Alexander Freytag
  37. * @date 10-02-2014 ( dd-mmyyyy)
  38. */
  39. virtual void restore ( std::istream & is, int format = 0 );
  40. /**
  41. * @brief Save object to external file (stream)
  42. * @author Alexander Freytag
  43. * @date 10-02-2014 ( dd-mmyyyy)
  44. */
  45. virtual void store( std::ostream & os, int format = 0 ) const;
  46. /**
  47. * @brief Clear object
  48. * @author Alexander Freytag
  49. * @date 10-02-2014 ( dd-mmyyyy)
  50. */
  51. virtual void clear ();
  52. };
  53. } // namespace
  54. #endif