ocl: update gftt

pull/2295/head
Alexander Alekhin 11 years ago
parent e371901dd9
commit ce992c8269
  1. 2
      modules/imgproc/src/featureselect.cpp
  2. 4
      modules/imgproc/test/ocl/test_gftt.cpp

@ -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…
Cancel
Save