Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/3rdparty/openvx/include/ivx_lib_debug.hpp
16354 views
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
5
// Copyright (C) 2016, Intel Corporation, all rights reserved.
6
// Third party copyrights are property of their respective owners.
7
8
/*
9
C++ wrappers over OpenVX 1.x C API ("openvx-debug" module)
10
Details: TBD
11
*/
12
13
#pragma once
14
#ifndef IVX_LIB_DEBUG_HPP
15
#define IVX_LIB_DEBUG_HPP
16
17
#include "ivx.hpp"
18
19
namespace ivx
20
{
21
namespace debug
22
{
23
/*
24
* "openvx-debug" module
25
*/
26
27
//
28
void fReadImage(vx_context c, const std::string& path, vx_image img)
29
{
30
IVX_CHECK_STATUS( vxuFReadImage(c, (vx_char*)path.c_str(), img) );
31
}
32
33
//
34
void fWriteImage(vx_context c, vx_image img, const std::string& path)
35
{
36
IVX_CHECK_STATUS( vxuFWriteImage(c, img, (vx_char*)path.c_str()) );
37
}
38
39
} // namespace debug
40
} // namespace ivx
41
42
#endif //IVX_LIB_DEBUG_HPP
43
44