PDFImage.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * @file PDFImage.h
  3. * @brief accumulate two dimensional density
  4. * @author Erik Rodner
  5. * @date 04/16/2008
  6. */
  7. #ifndef PDFIMAGEINCLUDE
  8. #define PDFIMAGEINCLUDE
  9. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include "PDF.h"
  15. namespace OBJREC {
  16. /** accumulate two dimensional density */
  17. class PDFImage : public PDF
  18. {
  19. protected:
  20. // refactor-nice.pl: check this substitution
  21. // old: ImageD imgd;
  22. NICE::FloatImage imgd;
  23. public:
  24. /** simple constructor */
  25. // refactor-nice.pl: check this substitution
  26. // old: PDFImage( const ImageD & imgd );
  27. PDFImage( const NICE::FloatImage & imgd );
  28. /** simple destructor */
  29. virtual ~PDFImage();
  30. // refactor-nice.pl: check this substitution
  31. // old: double getNLogDensity ( const Vector & x ) const;
  32. double getNLogDensity ( const NICE::Vector & x ) const;
  33. // refactor-nice.pl: check this substitution
  34. // old: double getProb ( const Vector & x ) const;
  35. double getProb ( const NICE::Vector & x ) const;
  36. int getDimension () const;
  37. };
  38. } // namespace
  39. #endif