Buffer.h 985 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * NICE-Core - efficient algebra and computer vision methods
  3. * - libimage - An image library
  4. * See file License for license information.
  5. */
  6. #ifndef LIMUN_BUFFER_H
  7. #define LIMUN_BUFFER_H
  8. #include "core/image/ippwrapper.h"
  9. #include "core/image/GrayColorImageCommonImplementation.h"
  10. #include "core/image/RectT.h"
  11. #include "core/vector/VectorT.h"
  12. namespace NICE {
  13. /**
  14. * Create result buffer.
  15. * @param image input
  16. * @param buffer image buffer for result
  17. * @return image buffer
  18. */
  19. template<class IMG, class BUFFER>
  20. BUFFER* createResultBuffer(const IMG& image, BUFFER* buffer);
  21. /**
  22. * Create result buffer.
  23. * @param width width of the input image
  24. * @param height height of the input image
  25. * @param buffer image buffer for result
  26. * @return image buffer
  27. */
  28. template<class BUFFER>
  29. BUFFER* createResultBuffer(const int width, const int height, BUFFER* buffer);
  30. } // namespace
  31. //#ifdef __GNUC__
  32. #include <core/image/Buffer.tcc>
  33. //#endif
  34. #endif //LIMUN_BUFFER_H