12 #ifndef MLPACK_CORE_METRICS_NMS_HPP 13 #define MLPACK_CORE_METRICS_NMS_HPP 39 template<
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>
77 void serialize(Archive &ar,
const uint32_t );
84 #include "non_maximal_supression_impl.hpp" Linear algebra utility functions, generally performed on matrices or vectors.
void serialize(Archive &ar, const uint32_t)
Serialize the metric.
Definition of Non Maximal Supression.
NMS()
Default constructor required to satisfy the Metric policy.
static const bool useCoordinates
static void Evaluate(const BoundingBoxesType &boundingBoxes, const ConfidenceScoreType &confidenceScores, OutputType &selectedIndices, const double threshold=0.5)
Performs non-maximal suppression.