Conversions.h 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "core/image/ImageT.h"
  10. #include "core/vector/VectorT.h"
  11. #include "core/vector/MatrixT.h"
  12. #include <vector>
  13. namespace OBJREC {
  14. /** @brief boring data conversions */
  15. class Conversions
  16. {
  17. protected:
  18. public:
  19. /** simple constructor */
  20. Conversions();
  21. /** simple destructor */
  22. virtual ~Conversions();
  23. static std::vector<double> stl_vector ( const NICE::Vector & x );
  24. static void resizeImage ( const NICE::Image & src, NICE::Image & dst, int newWidth, int newHeight );
  25. static void resizeImage ( const NICE::ColorImage & src, NICE::ColorImage & dst, int newWidth, int newHeight );
  26. static NICE::Image ReadImgAdv ( const std::string & filename, int normalizeWidth = -1, int normalizeHeight = -1 );
  27. };
  28. } // namespace
  29. #endif