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

@ -124,7 +124,7 @@ static bool ocl_goodFeaturesToTrack( InputArray _image, OutputArray _corners,
tmpCorners.resize(total);
Mat mcorners(1, totalb, CV_8UC1, &tmpCorners[0]);
corners.colRange(0, totalb).getMat(ACCESS_READ).copyTo(mcorners);
corners.colRange(0, totalb).copyTo(mcorners);
}
std::sort( tmpCorners.begin(), tmpCorners.end() );

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]));
}
};