mlpack
3.4.2
mlpack-3.4.2
src
mlpack
core
metrics
iou_metric.hpp
Go to the documentation of this file.
1
14
#ifndef MLPACK_CORE_METRICS_IOU_HPP
15
#define MLPACK_CORE_METRICS_IOU_HPP
16
#include <
mlpack/prereqs.hpp
>
17
18
namespace
mlpack
{
19
namespace
metric {
20
38
template
<
bool
UseCoordinates = false>
39
class
IoU
40
{
41
public
:
43
IoU
()
44
{
45
// Nothing to do here.
46
}
47
58
template
<
typename
VecTypeA,
typename
VecTypeB>
59
static
typename
VecTypeA::elem_type
Evaluate
(
const
VecTypeA& a,
60
const
VecTypeB& b);
61
62
static
const
bool
useCoordinates
= UseCoordinates;
63
65
template
<
typename
Archive>
66
void
serialize
(Archive& ar,
const
unsigned
int
/* version */
);
67
};
// class IoU
68
69
}
// namespace metric
70
}
// namespace mlpack
71
72
// Include implementation.
73
#include "iou_metric_impl.hpp"
74
75
#endif
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack::metric::IoU::useCoordinates
static const bool useCoordinates
Definition:
iou_metric.hpp:62
mlpack::metric::IoU::serialize
void serialize(Archive &ar, const unsigned int)
Serialize the metric.
mlpack::metric::IoU
Definition of Intersection over Union metric.
Definition:
iou_metric.hpp:40
mlpack::metric::IoU::IoU
IoU()
Default constructor required to satisfy the Metric policy.
Definition:
iou_metric.hpp:43
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
add_to_cli11.hpp:21
mlpack::metric::IoU::Evaluate
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,...
Generated by
1.8.20