提交 3d095ccc 编写于 作者: V Vladislav Vinogradov

fixed condition in KeyPointsFilter::retainBest

上级 d27d091e
......@@ -192,7 +192,7 @@ struct KeypointResponseGreater
void KeyPointsFilter::retainBest(vector<KeyPoint>& keypoints, int n_points)
{
//this is only necessary if the keypoints size is greater than the number of desired points.
if( n_points > 0 && keypoints.size() > (size_t)n_points )
if( n_points >= 0 && keypoints.size() > (size_t)n_points )
{
if (n_points==0)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册