ivx_lib_debug.hpp 922 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. // Copyright (C) 2016, Intel Corporation, all rights reserved.
  5. // Third party copyrights are property of their respective owners.
  6. /*
  7. C++ wrappers over OpenVX 1.x C API ("openvx-debug" module)
  8. Details: TBD
  9. */
  10. #pragma once
  11. #ifndef IVX_LIB_DEBUG_HPP
  12. #define IVX_LIB_DEBUG_HPP
  13. #include "ivx.hpp"
  14. namespace ivx
  15. {
  16. namespace debug
  17. {
  18. /*
  19. * "openvx-debug" module
  20. */
  21. //
  22. void fReadImage(vx_context c, const std::string& path, vx_image img)
  23. {
  24. IVX_CHECK_STATUS( vxuFReadImage(c, (vx_char*)path.c_str(), img) );
  25. }
  26. //
  27. void fWriteImage(vx_context c, vx_image img, const std::string& path)
  28. {
  29. IVX_CHECK_STATUS( vxuFWriteImage(c, img, (vx_char*)path.c_str()) );
  30. }
  31. } // namespace debug
  32. } // namespace ivx
  33. #endif //IVX_LIB_DEBUG_HPP