fixed copying UMat -> std::vector

This commit is contained in:
Ilya Lavrenov
2014-01-20 16:46:20 +04:00
parent 5abfd40989
commit bfa382cf9d
3 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ static bool ocl_goodFeaturesToTrack( InputArray _image, OutputArray _corners,
tmpCorners.resize(total);
Mat mcorners(1, totalb, CV_8UC1, &tmpCorners[0]);
corners.colRange(0, totalb).copyTo(mcorners);
corners.colRange(0, totalb).getMat(ACCESS_READ).copyTo(mcorners);
}
std::sort( tmpCorners.begin(), tmpCorners.end() );