Merge pull request #7882 from savuor:fix/ovx_pyrlk_err

This commit is contained in:
Alexander Alekhin 2016-12-17 07:33:33 +00:00
commit 6a537e3986

View File

@ -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