Replace swap with clear (more efficient)
This commit is contained in:
parent
3e24822fff
commit
86888bdf77
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user