Skip to content

Commit

Permalink
don't run OpenVX pyrLK if user asked for err vector
Browse files Browse the repository at this point in the history
  • Loading branch information
savuor committed Dec 16, 2016
1 parent a4a325f commit e3c3997
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/video/src/lkpyramid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e3c3997

Please sign in to comment.