1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

macro for normal return from thriveless kernel.set

This commit is contained in:
mlyashko
2014-03-06 11:43:01 +04:00
parent 5c867463d2
commit 66ed6a8a50
3 changed files with 106 additions and 14 deletions
-10
View File
@@ -706,16 +706,6 @@ namespace cv
block.z = patch.z = 1;
}
#define SAFE_KERNEL_SET_ARG(idx, arg) \
{\
int idxNew = kernel.set(idx, arg);\
if (-1 == idxNew)\
{\
printf("lkSparse_run can't setup argument index = %d to kernel\n", idx);\
return false;\
}\
idx = idxNew;\
}
bool lkSparse_run(UMat &I, UMat &J, const UMat &prevPts, UMat &nextPts, UMat &status, UMat& err,
int ptcount, int level)
{