features2d agast: clear in/out keypoints container

fixes #5863
pull/5880/head
Alexander Alekhin 9 years ago
parent 8d79285d02
commit 3d85e7ac0d
  1. 1
      modules/features2d/src/agast.cpp

@ -7961,6 +7961,7 @@ public:
cvtColor( _image, ogray, COLOR_BGR2GRAY );
gray = ogray;
}
keypoints.clear();
AGAST( gray, keypoints, threshold, nonmaxSuppression, type );
KeyPointsFilter::runByPixelsMask( keypoints, mask );
}

Loading…
Cancel
Save