mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
ocl: update gftt
This commit is contained in:
parent
e371901dd9
commit
ce992c8269
@ -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() );
|
||||
|
@ -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]));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user