libkipr  1.0.0
object.hpp
Go to the documentation of this file.
1 #ifndef _KIPR_CAMERA_OBJECT_HPP_
2 #define _KIPR_CAMERA_OBJECT_HPP_
3 
5 
6 #include <cstdint>
7 #include <cstddef>
8 #include <vector>
9 
10 namespace kipr
11 {
12  namespace camera
13  {
14  class Object
15  {
16  public:
18  const double confidence, const char *data = 0,
19  const size_t &dataLength = 0);
20  Object(const Object &rhs);
22 
25 
26  const double confidence() const;
27  const char *data() const;
28  const size_t dataLength() const;
29 
30  private:
31  geometry::Point2<unsigned> m_centroid;
32  geometry::Rect<unsigned> m_boundingBox;
33  double m_confidence;
34  char *m_data;
35  size_t m_dataLength;
36  };
37 
38  typedef std::vector<Object> ObjectVector;
39  }
40 }
41 
42 #endif
Definition: object.hpp:15
const geometry::Point2< unsigned > & centroid() const
const geometry::Rect< unsigned > & boundingBox() const
Object(const Object &rhs)
const double confidence() const
const char * data() const
Object(const geometry::Point2< unsigned > &centroid, const geometry::Rect< unsigned > &boundingBox, const double confidence, const char *data=0, const size_t &dataLength=0)
const size_t dataLength() const
std::vector< Object > ObjectVector
Definition: object.hpp:38
Definition: accel.hpp:7