Remove inline sorting algorithms from core headers

This commit is contained in:
Andrey Kamaev
2013-03-28 16:12:13 +04:00
parent 20534c9beb
commit cc6bdfb045
19 changed files with 139 additions and 577 deletions

View File

@@ -389,7 +389,7 @@ void LDetector::getMostStable2D(const Mat& image, std::vector<KeyPoint>& keypoin
if( (int)keypoints.size() > maxPoints )
{
sort(keypoints, CmpKeypointScores());
std::sort(keypoints.begin(), keypoints.end(), CmpKeypointScores());
keypoints.resize(maxPoints);
}
}
@@ -602,7 +602,7 @@ void LDetector::operator()(const std::vector<Mat>& pyr, std::vector<KeyPoint>& k
if( maxCount > 0 && keypoints.size() > (size_t)maxCount )
{
sort(keypoints, CmpKeypointScores());
std::sort(keypoints.begin(), keypoints.end(), CmpKeypointScores());
keypoints.resize(maxCount);
}
}