34 #include <visp3/core/vpConfig.h>
36 #include <visp3/detection/vpDetectorBase.h>
45 : m_polygon(o.m_polygon), m_message(o.m_message), m_nb_objects(o.m_nb_objects), m_timeout_ms(o.m_timeout_ms)
82 size_t m_polygon_i_size =
m_polygon[i].size();
83 for (
size_t j = 0; j < m_polygon_i_size; ++j) {
86 cog /=
static_cast<double>(
m_polygon[i].size());
103 size_t m_polygon_i_size =
m_polygon[i].size();
104 for (
size_t j = 0; j < m_polygon_i_size; ++j) {
std::vector< std::vector< vpImagePoint > > & getPolygon()
std::vector< std::string > m_message
Message attached to each object.
std::vector< std::vector< vpImagePoint > > m_polygon
For each object, defines the polygon that contains the object.
vpRect getBBox(size_t i) const
vpImagePoint getCog(size_t i) const
std::vector< std::string > & getMessage()
error that can be emitted by ViSP classes.
@ badValue
Used to indicate that a value is not in the allowed range.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Defines a rectangle in the plane.