Added cleanup of keypoints vector

This commit is contained in:
Anna Kogan 2013-01-22 18:05:18 +04:00
parent 594f969641
commit 608fab60fd

View File

@ -482,6 +482,8 @@ static void fastHessianDetector( const Mat& sum, const Mat& mask_sum, vector<Key
vector<int> sampleSteps(nTotalLayers);
vector<int> middleIndices(nMiddleLayers);
keypoints.clear();
// Allocate space and calculate properties of each layer
int index = 0, middleIndex = 0, step = SAMPLE_STEP0;