Replace swap with clear (more efficient)

This commit is contained in:
Ievgen Khvedchenia 2014-04-24 22:01:45 +01:00
parent 3e24822fff
commit 86888bdf77

View File

@ -183,7 +183,8 @@ void AKAZEFeatures::Feature_Detection(std::vector<cv::KeyPoint>& kpts) {
t1 = cv::getTickCount(); t1 = cv::getTickCount();
vector<cv::KeyPoint>().swap(kpts); kpts.clear();
Compute_Determinant_Hessian_Response(); Compute_Determinant_Hessian_Response();
Find_Scale_Space_Extrema(kpts); Find_Scale_Space_Extrema(kpts);
Do_Subpixel_Refinement(kpts); Do_Subpixel_Refinement(kpts);