HistIntersectDistance.h 679 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @file HistIntersectDistance.h
  3. * @brief $\chi^2$ distance measure
  4. * @author Erik Rodner
  5. * @date 02/19/2008
  6. */
  7. #ifndef HistIntersectDistanceINCLUDE
  8. #define HistIntersectDistanceINCLUDE
  9. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include <core/vector/Distance.h>
  12. namespace OBJREC {
  13. /** \chi^2 distance measure */
  14. class HistIntersectDistance : 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. HistIntersectDistance();
  21. /** simple destructor */
  22. virtual ~HistIntersectDistance();
  23. };
  24. } // namespace
  25. #endif