[英]Read write and display image using openVX
I am trying to read image using openVX. 我正在尝试使用openVX读取图像。 I have written following program by referring some samples.
我已经通过引用一些示例编写了以下程序。
#include <iostream>
#include <string>
//#include <vx_examples.h>
#include <VX/vx.h>
//#include <VX/vx_helper.h>
using namespace std;
int main(int argc, char** argv)
{
cout << "SampleOpenVXCode" << endl;
vx_image vxSrc;
vx_context context = vxCreateContext();
vxuFReadImage(context, argv[1], vxSrc);
vxuFWriteImage(context, vxSrc, "/home/deepak/Desktop/test.jpg");
}
But I am getting following error. 但是我得到以下错误。
openvxTest.cpp: In function ‘int main(int, char**)’:
openvxTest.cpp:18:39: error: ‘vxuFReadImage’ was not declared in this scope
vxuFReadImage(context, argv[1], vxSrc);
^
openvxTest.cpp:20:65: error: ‘vxuFWriteImage’ was not declared in this scope
vxuFWriteImage(context, vxSrc, "/home/deepak/Desktop/test.jpg");
Also I was not able to find the functions vxuFWriteImage()
and vxuFReadImage()
in the openVX
headers ( openvx/include/VX/vx_*
). 另外,我在
openVX
标头( openvx/include/VX/vx_*
)中找不到函数vxuFWriteImage()
和vxuFReadImage()
)。
Can anybody help me to read write and display images using openVX. 谁能帮助我使用openVX读取书写和显示图像。
Thank you. 谢谢。
There is no such function in OpenVX specification . OpenVX规范中没有此类功能。 This is being cross compiled for a specific platform?
是否正在针对特定平台交叉编译? Because they might have written this API and hence appropriate header file and library needs to be linked.
由于他们可能已经编写了此API,因此需要链接适当的头文件和库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.