EMDDistanceSingle.h 651 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include <core/vector/Distance.h>
  12. namespace OBJREC {
  13. /** Earth Movers Distance */
  14. class EMDDistanceSingle : public NICE::VectorDistance<double>
  15. {
  16. protected:
  17. double doCalculate (const NICE::Vector & x, const NICE::Vector & y) const;
  18. public:
  19. /** simple constructor */
  20. EMDDistanceSingle();
  21. /** simple destructor */
  22. virtual ~EMDDistanceSingle();
  23. };
  24. } // namespace
  25. #endif