Commit 328151c8 authored by Rostislav Vasilikhin's avatar Rostislav Vasilikhin

don't run OpenVX pyrLK if user asked for err vector

parent ef081101
......@@ -1091,11 +1091,10 @@ namespace
for(size_t i = 0; i < npoints; i++ )
status[i] = true;
Mat errMat;
// OpenVX doesn't return detection errors
if( _err.needed() )
{
_err.create((int)npoints, 1, CV_32F, -1, true);
errMat = _err.getMat();
return false;
}
try
......@@ -1184,8 +1183,6 @@ namespace
vx_keypoint_t kp = vxNextPts[i];
nextPtsMat.at<Point2f>(i) = Point2f(kp.x, kp.y);
statusMat.at<uchar>(i) = (bool)kp.tracking_status;
// OpenVX doesn't return detection errors
errMat.at<float>(i) = 0;
}
#ifdef VX_VERSION_1_1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment