mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
don't run OpenVX pyrLK if user asked for err vector
This commit is contained in:
@@ -1091,11 +1091,10 @@ namespace
|
|||||||
for(size_t i = 0; i < npoints; i++ )
|
for(size_t i = 0; i < npoints; i++ )
|
||||||
status[i] = true;
|
status[i] = true;
|
||||||
|
|
||||||
Mat errMat;
|
// OpenVX doesn't return detection errors
|
||||||
if( _err.needed() )
|
if( _err.needed() )
|
||||||
{
|
{
|
||||||
_err.create((int)npoints, 1, CV_32F, -1, true);
|
return false;
|
||||||
errMat = _err.getMat();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -1184,8 +1183,6 @@ namespace
|
|||||||
vx_keypoint_t kp = vxNextPts[i];
|
vx_keypoint_t kp = vxNextPts[i];
|
||||||
nextPtsMat.at<Point2f>(i) = Point2f(kp.x, kp.y);
|
nextPtsMat.at<Point2f>(i) = Point2f(kp.x, kp.y);
|
||||||
statusMat.at<uchar>(i) = (bool)kp.tracking_status;
|
statusMat.at<uchar>(i) = (bool)kp.tracking_status;
|
||||||
// OpenVX doesn't return detection errors
|
|
||||||
errMat.at<float>(i) = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef VX_VERSION_1_1
|
#ifdef VX_VERSION_1_1
|
||||||
|
|||||||
Reference in New Issue
Block a user