Quantization1DAequiDist0ToMax.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /**
  2. * @file Quantization1DAequiDist0ToMax.h
  3. * @brief Quantization of one-dimensional signals with a standard range of [0,1] (Interface)
  4. * @author Erik Rodner, Alexander Freytag
  5. * @date 01/09/2012
  6. */
  7. #ifndef _NICE_QUANTIZATIONINCLUDE
  8. #define _NICE_QUANTIZATIONINCLUDE
  9. // NICE-core includes
  10. #include <core/basics/types.h>
  11. #include <core/basics/Persistent.h>
  12. #include "gp-hik-core/Quantization.h"
  13. namespace NICE {
  14. /**
  15. * @class Quantization
  16. * @brief Quantization of one-dimensional signals with a standard range of [0,1]
  17. * @author Erik Rodner, Alexander Freytag
  18. */
  19. class Quantization1DAequiDist0ToMax : public NICE::Quantization
  20. {
  21. /** TODO
  22. * The current implementation only provides uniform quantization. We could extend this
  23. * by giving a ParameterizedFunction object to the constructor, which would allow us to inverse transform function values
  24. * before performing the binning.
  25. */
  26. protected:
  27. public:
  28. /**
  29. * @brief default constructor
  30. * @author Alexander Freytag
  31. * @date 06-02-2014
  32. */
  33. Quantization1DAequiDist0ToMax( );
  34. /**
  35. * @brief simple constructor
  36. * @author Erik Rodner
  37. * @date
  38. */
  39. Quantization1DAequiDist0ToMax( uint _numBins,
  40. NICE::Vector * v_upperBounds = NULL
  41. );
  42. /** simple destructor */
  43. virtual ~Quantization1DAequiDist0ToMax();
  44. ///////////////////// INTERFACE PERSISTENT /////////////////////
  45. // interface specific methods for store and restore
  46. ///////////////////// INTERFACE PERSISTENT /////////////////////
  47. virtual void restore ( std::istream & _is,
  48. int _format = 0
  49. );
  50. virtual void store ( std::ostream & _os,
  51. int _format = 0
  52. ) const;
  53. virtual void clear () {};
  54. };
  55. }
  56. #endif