From: Anna Kogan Date: Tue, 22 Jan 2013 14:05:18 +0000 (+0400) Subject: Added cleanup of keypoints vector X-Git-Tag: accepted/2.0/20130307.220821~210^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=608fab60fdd6291ecad13b7cf2bb19426d69baae;p=profile%2Fivi%2Fopencv.git Added cleanup of keypoints vector --- diff --git a/modules/nonfree/src/surf.cpp b/modules/nonfree/src/surf.cpp index 9e6ce54..9a4cd28 100644 --- a/modules/nonfree/src/surf.cpp +++ b/modules/nonfree/src/surf.cpp @@ -482,6 +482,8 @@ static void fastHessianDetector( const Mat& sum, const Mat& mask_sum, vector sampleSteps(nTotalLayers); vector middleIndices(nMiddleLayers); + keypoints.clear(); + // Allocate space and calculate properties of each layer int index = 0, middleIndex = 0, step = SAMPLE_STEP0;