|
|
@ -1665,7 +1665,7 @@ namespace cv |
|
|
|
|
|
|
|
|
|
|
|
try |
|
|
|
try |
|
|
|
{ |
|
|
|
{ |
|
|
|
ivx::Context ctx = ivx::Context::create(); |
|
|
|
ivx::Context ctx = ovx::getOpenVXContext(); |
|
|
|
#ifndef VX_VERSION_1_1 |
|
|
|
#ifndef VX_VERSION_1_1 |
|
|
|
if (ctx.vendorID() == VX_ID_KHRONOS) |
|
|
|
if (ctx.vendorID() == VX_ID_KHRONOS) |
|
|
|
return false; // Do not use OpenVX meanStdDev estimation for sample 1.0.1 implementation due to lack of accuracy
|
|
|
|
return false; // Do not use OpenVX meanStdDev estimation for sample 1.0.1 implementation due to lack of accuracy
|
|
|
@ -2312,7 +2312,7 @@ static bool openvx_minMaxIdx(Mat &src, double* minVal, double* maxVal, int* minI |
|
|
|
|
|
|
|
|
|
|
|
try |
|
|
|
try |
|
|
|
{ |
|
|
|
{ |
|
|
|
ivx::Context ctx = ivx::Context::create(); |
|
|
|
ivx::Context ctx = ovx::getOpenVXContext(); |
|
|
|
ivx::Image |
|
|
|
ivx::Image |
|
|
|
ia = ivx::Image::createFromHandle(ctx, stype == CV_8UC1 ? VX_DF_IMAGE_U8 : VX_DF_IMAGE_S16, |
|
|
|
ia = ivx::Image::createFromHandle(ctx, stype == CV_8UC1 ? VX_DF_IMAGE_U8 : VX_DF_IMAGE_S16, |
|
|
|
ivx::Image::createAddressing(cols, rows, stype == CV_8UC1 ? 1 : 2, (vx_int32)(src.step[0])), src.ptr()); |
|
|
|
ivx::Image::createAddressing(cols, rows, stype == CV_8UC1 ? 1 : 2, (vx_int32)(src.step[0])), src.ptr()); |
|
|
|