I am trying to read image using 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_*
).
Can anybody help me to read write and display images using openVX.
Thank you.
There is no such function in OpenVX specification. 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.