GSCluster.h 853 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * @file GSCluster.h
  3. * @brief Generate Signature by Clustering Local Features (image-specific codebook!). The class can be used for the EMD kernel, but not for usual BoV approaches.
  4. * @author Erik Rodner
  5. * @date 10/30/2007
  6. */
  7. #ifndef GSCLUSTERINCLUDE
  8. #define GSCLUSTERINCLUDE
  9. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "GenerateSignature.h"
  12. #include "ClusterAlgorithm.h"
  13. namespace OBJREC {
  14. /** Generate Signature by Clustering Local Features */
  15. class GSCluster : public GenerateSignature
  16. {
  17. protected:
  18. int c_no_clusters;
  19. ClusterAlgorithm *clualg;
  20. public:
  21. /** simple constructor */
  22. GSCluster( const NICE::Config *conf );
  23. /** simple destructor */
  24. virtual ~GSCluster();
  25. void signature ( const NICE::VVector & features,
  26. NICE::Vector & signature );
  27. };
  28. } // namespace
  29. #endif