UWARG Computer Vision
|
Container class for storing information about identified targets in real-world measurements Adding PixelTargets consolidates their information into the Target. More...
#include <target.h>
Public Member Functions | |
Target (std::string type) | |
cv::Mat | get_image () |
Getter for Target image. More... | |
std::string | get_type () |
Getter for type field. More... | |
cv::Point2f | get_centroid () |
Getter for centroid. More... | |
double | get_area () |
Getter for area. More... | |
double | get_perimeter () |
Getter for perimeter. More... | |
cv::Scalar | get_colour () |
Getter for colour. More... | |
cv::Point2f | get_error () |
Getter for error. More... | |
double | get_error_angle () |
Getter for error angle. More... | |
void | add_object (Object *t) |
Adds given PixelTarget to Target's storage and recalculate target information. More... | |
const std::vector< Object * > & | get_objects () |
Getter for pixel Targets. More... | |
Container class for storing information about identified targets in real-world measurements Adding PixelTargets consolidates their information into the Target.
void Target::add_object | ( | Object * | t | ) |
Adds given PixelTarget to Target's storage and recalculate target information.
t | PixelTarget to be added |
double Target::get_area | ( | ) |
Getter for area.
cv::Point2f Target::get_centroid | ( | ) |
Getter for centroid.
cv::Scalar Target::get_colour | ( | ) |
Getter for colour.
cv::Point2f Target::get_error | ( | ) |
Getter for error.
double Target::get_error_angle | ( | ) |
Getter for error angle.
cv::Mat Target::get_image | ( | ) |
const std::vector<Object *>& Target::get_objects | ( | ) |
Getter for pixel Targets.
double Target::get_perimeter | ( | ) |
Getter for perimeter.
std::string Target::get_type | ( | ) |
Getter for type field.