try
{
- ivx::Context ctx = ivx::Context::create();
+ ivx::Context ctx = ovx::getOpenVXContext();
if ((vx_size)(ksize.width) > ctx.convolutionMaxDimension() || (vx_size)(ksize.height) > ctx.convolutionMaxDimension())
return false;
try
{
- ivx::Context ctx = ivx::Context::create();
+ ivx::Context ctx = ovx::getOpenVXContext();
if ((vx_size)(ksize.width) > ctx.convolutionMaxDimension() || (vx_size)(ksize.height) > ctx.convolutionMaxDimension())
return false;
try
{
- ivx::Context ctx = ivx::Context::create();
+ ivx::Context ctx = ovx::getOpenVXContext();
#ifdef VX_VERSION_1_1
if ((vx_size)ksize > ctx.nonlinearMaxDimension())
return false;
CV_Assert( (ksize % 2 == 1) && (_src0.dims() <= 2 ));
- if( ksize <= 1 )
+ if( ksize <= 1 || _src0.empty() )
{
_src0.copyTo(_dst);
return;