Merge pull request #5880 from alalek:fix_5863

This commit is contained in:
Alexander Alekhin
2016-01-04 05:27:22 +00:00

View File

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