Hi,
I am trying to write a very simple OpenVX example with Nvidia Vision Works. These are the information about my installation:
VisionWorks library info:
VisionWorks version : 1.6.0
OpenVX Standard version : 1.1.0
This is my code:
....
nvxio::Application &app = nvxio::Application::get();
ovxio::printVersionInfo();
if( argc != 2)
{
std::cout <<" Usage: display_image ImageToLoadAndDisplay" << endl;
return -1;
}
// Create OpenCV input image
cv::Mat cv_inputImage = cv::imread(argv[1], 0);
if (cv_inputImage.empty()){
printf("ERROR! failed to read the input image, exiting...\n");
return 1;
}
// Create OpenCV output image
cv::Mat cv_outputImage(cv_inputImage.size(), cv_inputImage.type());
// // Create the context
ovxio::ContextGuard context;
vxRegisterLogCallback(context, &myLogCallback, vx_false_e);
vxDirective(context, VX_DIRECTIVE_ENABLE_PERFORMANCE);
....
I could compile the code without any error. However, after executing the code, I get this runtime error:
terminate called after throwing an instance of 'std::runtime_error'
what(): context != 0 && vxGetStatus((vx_reference)context) == VX_SUCCESS failure in file src/OVX/UtilityOVX.cpp line 101
Aborted (core dumped)