UWARG Computer Vision
Public Member Functions | List of all members
Target Class Reference

Container class for storing information about identified targets in real-world measurements Adding PixelTargets consolidates their information into the Target. More...

#include <target.h>

Collaboration diagram for Target:
Collaboration graph

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...
 

Detailed Description

Container class for storing information about identified targets in real-world measurements Adding PixelTargets consolidates their information into the Target.

Member Function Documentation

void Target::add_object ( Object t)

Adds given PixelTarget to Target's storage and recalculate target information.

Parameters
tPixelTarget to be added
double Target::get_area ( )

Getter for area.

Returns
Area of the Target in square metres
cv::Point2f Target::get_centroid ( )

Getter for centroid.

Returns
GPS co-ordinates of the Target
cv::Scalar Target::get_colour ( )

Getter for colour.

Returns
Average colour of the interiour of the Target
cv::Point2f Target::get_error ( )

Getter for error.

Returns
2D error magnitude of the Target's location in metres
double Target::get_error_angle ( )

Getter for error angle.

Returns
Angle in radians between the direction of the error and North
cv::Mat Target::get_image ( )

Getter for Target image.

Returns
The best image of the Target from one of the PixelTargets
const std::vector<Object *>& Target::get_objects ( )

Getter for pixel Targets.

Returns
Array containing all of the PixelTargets that were used to create this instance of Target
double Target::get_perimeter ( )

Getter for perimeter.

Returns
Perimeter of the Target in metres
std::string Target::get_type ( )

Getter for type field.

Returns
Type std::string associated with the Target

The documentation for this class was generated from the following file: