12#ifndef MLPACK_CORE_METRICS_NMS_HPP
13#define MLPACK_CORE_METRICS_NMS_HPP
39template<
bool UseCoordinates = false>
64 typename BoundingBoxesType,
65 typename ConfidenceScoreType,
68 static void Evaluate(
const BoundingBoxesType& boundingBoxes,
69 const ConfidenceScoreType& confidenceScores,
70 OutputType& selectedIndices,
71 const double threshold = 0.5);
76 template <
typename Archive>
84#include "non_maximal_supression_impl.hpp"
Definition of Non Maximal Supression.
static const bool useCoordinates
NMS()
Default constructor required to satisfy the Metric policy.
static void Evaluate(const BoundingBoxesType &boundingBoxes, const ConfidenceScoreType &confidenceScores, OutputType &selectedIndices, const double threshold=0.5)
Performs non-maximal suppression.
void serialize(Archive &ar, const unsigned int)
Serialize the metric.
Linear algebra utility functions, generally performed on matrices or vectors.