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