PDFImage.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #include "core/image/ImageT.h"
  10. #include "core/vector/VectorT.h"
  11. #include "core/vector/MatrixT.h"
  12. #include "PDF.h"
  13. namespace OBJREC {
  14. /** accumulate two dimensional density */
  15. class PDFImage : public PDF
  16. {
  17. protected:
  18. // refactor-nice.pl: check this substitution
  19. // old: ImageD imgd;
  20. NICE::FloatImage imgd;
  21. public:
  22. /** simple constructor */
  23. // refactor-nice.pl: check this substitution
  24. // old: PDFImage( const ImageD & imgd );
  25. PDFImage( const NICE::FloatImage & imgd );
  26. /** simple destructor */
  27. virtual ~PDFImage();
  28. // refactor-nice.pl: check this substitution
  29. // old: double getNLogDensity ( const Vector & x ) const;
  30. double getNLogDensity ( const NICE::Vector & x ) const;
  31. // refactor-nice.pl: check this substitution
  32. // old: double getProb ( const Vector & x ) const;
  33. double getProb ( const NICE::Vector & x ) const;
  34. int getDimension () const;
  35. };
  36. } // namespace
  37. #endif