HistIntersectDistance.h 709 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #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. /** \chi^2 distance measure */
  17. class HistIntersectDistance : 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. HistIntersectDistance();
  24. /** simple destructor */
  25. virtual ~HistIntersectDistance();
  26. };
  27. } // namespace
  28. #endif