Conversions.h 853 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * @file Conversions.h
  3. * @brief boring conversions
  4. * @author Erik Rodner
  5. * @date 02/19/2008
  6. */
  7. #ifndef CONVERSIONSINCLUDE
  8. #define CONVERSIONSINCLUDE
  9. #include <vislearning/nice.h>
  10. #include <vector>
  11. namespace OBJREC {
  12. /** @brief boring data conversions */
  13. class Conversions
  14. {
  15. protected:
  16. public:
  17. /** simple constructor */
  18. Conversions();
  19. /** simple destructor */
  20. virtual ~Conversions();
  21. static std::vector<double> stl_vector ( const NICE::Vector & x );
  22. static void resizeImage ( const NICE::Image & src, NICE::Image & dst, int newWidth, int newHeight );
  23. static void resizeImage ( const NICE::ColorImage & src, NICE::ColorImage & dst, int newWidth, int newHeight );
  24. static NICE::Image ReadImgAdv ( const std::string & filename, int normalizeWidth = -1, int normalizeHeight = -1 );
  25. };
  26. } // namespace
  27. #endif