ocl: update gftt

This commit is contained in:
Alexander Alekhin
2014-02-06 19:07:30 +04:00
parent e371901dd9
commit ce992c8269
2 changed files with 3 additions and 3 deletions

View File

@@ -84,8 +84,8 @@ PARAM_TEST_CASE(GoodFeaturesToTrack, double, bool)
void UMatToVector(const UMat & um, std::vector<Point2f> & v) const
{
v.resize(points.cols);
um.getMat(ACCESS_READ).copyTo(v);
v.resize(um.size().area());
um.copyTo(Mat(um.size(), CV_32FC2, &v[0]));
}
};