UWARG Computer Vision
target.h
Go to the documentation of this file.
1 
16 #ifndef TARGET_H_INCLUDED
17 #define TARGET_H_INCLUDED
18 
29 #include <opencv2/core/core.hpp>
30 #include <vector>
31 
32 class Object;
33 
34 class Target{
35 public:
36  Target(std::string type);
37 
43  cv::Mat get_image();
44 
50  std::string get_type();
51 
57  cv::Point2f get_centroid();
58 
64  double get_area();
65 
71  double get_perimeter();
72 
78  cv::Scalar get_colour();
79 
85  cv::Point2f get_error();
86 
92  double get_error_angle();
93 
100  void add_object(Object * t);
101 
108  const std::vector<Object *> & get_objects();
109 private:
110 
114  cv::Mat image;
115 
119  double imageQuality;
120 
124  std::string type;
125 
129  cv::Point2f centroid;
130 
134  double area;
135 
139  double perimeter;
140 
144  cv::Scalar colour;
145 
149  cv::Point2f error;
150 
154  double errorAngle;
155 
159  std::vector<Object *> objects;
160 };
161 
162 
163 #endif // TARGET_H_INCLUDED
Container class for storing information about identified targets in real-world measurements Adding Pi...
Definition: object.h:35
double get_error_angle()
Getter for error angle.
cv::Scalar get_colour()
Getter for colour.
Container class for storing information about identified targets in real-world measurements Adding Pi...
Definition: target.h:34
cv::Point2f get_error()
Getter for error.
cv::Point2f get_centroid()
Getter for centroid.
double get_area()
Getter for area.
const std::vector< Object * > & get_objects()
Getter for pixel Targets.
void add_object(Object *t)
Adds given PixelTarget to Target&#39;s storage and recalculate target information.
std::string get_type()
Getter for type field.
cv::Mat get_image()
Getter for Target image.
double get_perimeter()
Getter for perimeter.