EMDDistanceSingle.h 681 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * @file EMDDistanceSingle.h
  3. * @brief Earth Movers Distance
  4. * @author Erik Rodner
  5. * @date 10/24/2007
  6. */
  7. #ifndef EMDDistanceSingleINCLUDE
  8. #define EMDDistanceSingleINCLUDE
  9. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include <core/vector/Distance.h>
  15. namespace OBJREC {
  16. /** Earth Movers Distance */
  17. class EMDDistanceSingle : public NICE::VectorDistance<double>
  18. {
  19. protected:
  20. double doCalculate (const NICE::Vector & x, const NICE::Vector & y) const;
  21. public:
  22. /** simple constructor */
  23. EMDDistanceSingle();
  24. /** simple destructor */
  25. virtual ~EMDDistanceSingle();
  26. };
  27. } // namespace
  28. #endif