features2d agast: clear in/out keypoints container

fixes #5863
This commit is contained in:
Alexander Alekhin 2015-12-25 13:48:00 +03:00
parent 8d79285d02
commit 3d85e7ac0d

View File

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