LFSegmentation.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * @file LFSegmentation.h
  3. * @brief Local Features are connected components of a arbitrary segmentation
  4. * @author Erik Rodner
  5. * @date 01/21/2008
  6. */
  7. #ifndef LFSEGMENTATIONINCLUDE
  8. #define LFSEGMENTATIONINCLUDE
  9. #ifdef NICE_USELIB_ICE
  10. #include <image_nonvis.h>
  11. #include "LocalFeatureRepresentation.h"
  12. #include "vislearning/segmentation/SegmentationMethod.h"
  13. #include "core/basics/Config.h"
  14. namespace OBJREC {
  15. /** Local Features are connected components of a arbitrary segmentation */
  16. class LFSegmentation : public LocalFeatureRepresentation
  17. {
  18. protected:
  19. SegmentationMethod *segmentation;
  20. public:
  21. /** simple constructor */
  22. LFSegmentation( const NICE::Config *conf );
  23. /** simple destructor */
  24. virtual ~LFSegmentation();
  25. int getDescSize () const;
  26. int extractFeatures ( const NICE::Image & img, NICE::VVector & features,
  27. NICE::VVector & positions ) const;
  28. void visualizeFeatures ( NICE::Image & mark,
  29. const NICE::VVector & positions,
  30. size_t color ) const;
  31. };
  32. } // namespace
  33. #endif
  34. #endif