Merge pull request #2373 from mlyashko:optflow_dualtvl1
This commit is contained in:
@@ -2814,7 +2814,8 @@ int Kernel::set(int i, const void* value, size_t sz)
|
||||
{
|
||||
if (!p || !p->handle)
|
||||
return -1;
|
||||
CV_Assert(i >= 0);
|
||||
if (i < 0)
|
||||
return i;
|
||||
if( i == 0 )
|
||||
p->cleanupUMats();
|
||||
|
||||
@@ -2840,7 +2841,8 @@ int Kernel::set(int i, const KernelArg& arg)
|
||||
{
|
||||
if( !p || !p->handle )
|
||||
return -1;
|
||||
CV_Assert( i >= 0 );
|
||||
if (i < 0)
|
||||
return i;
|
||||
if( i == 0 )
|
||||
p->cleanupUMats();
|
||||
if( arg.m )
|
||||
|
Reference in New Issue
Block a user