14 #ifndef MLPACK_CORE_METRICS_IOU_HPP 15 #define MLPACK_CORE_METRICS_IOU_HPP 38 template<
bool UseCoordinates = false>
58 template<
typename VecTypeA,
typename VecTypeB>
59 static typename VecTypeA::elem_type
Evaluate(
const VecTypeA& a,
65 template<
typename Archive>
66 void serialize(Archive& ar,
const uint32_t );
73 #include "iou_metric_impl.hpp" Definition of Intersection over Union metric.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
static const bool useCoordinates
IoU()
Default constructor required to satisfy the Metric policy.
void serialize(Archive &ar, const uint32_t)
Serialize the metric.
static VecTypeA::elem_type Evaluate(const VecTypeA &a, const VecTypeB &b)
Computes the Intersection over Union metric between of two bounding boxes having pattern bx...