1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

dnn: make NMS function public

This commit is contained in:
Vladislav Sovrasov
2017-10-16 19:16:52 +03:00
parent 21c8e6d02d
commit acedb4a579
4 changed files with 161 additions and 62 deletions
+24
View File
@@ -0,0 +1,24 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2017, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "precomp.hpp"
#include <opencv2/dnn/nms.inl.hpp>
namespace cv
{
namespace dnn
{
void NMSBoxes(const std::vector<Rect>& bboxes, const std::vector<float>& scores,
const float score_threshold, const float nms_threshold,
const float eta, const int top_k, std::vector<int>& indices)
{
NMSFast_(bboxes, scores, score_threshold, nms_threshold, eta, top_k, indices, NMSOverlap<Rect>());
}
}// dnn
}// cv