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

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

#include <object.h>

Collaboration diagram for Object:
Collaboration graph

Public Member Functions

 Object (std::string type)
 
cv::Mat get_image ()
 Getter for Object 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 *o)
 Adds given PixelObject to Object's storage and recalculate target information. More...
 
const std::vector< Object * > & get_objects ()
 Getter for pixel Objects. More...
 

Detailed Description

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

Member Function Documentation

void Object::add_object ( Object o)

Adds given PixelObject to Object's storage and recalculate target information.

Parameters
oPixelObject to be added
double Object::get_area ( )

Getter for area.

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

Getter for centroid.

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

Getter for colour.

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

Getter for error.

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

Getter for error angle.

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

Getter for Object image.

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

Getter for pixel Objects.

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

Getter for perimeter.

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

Getter for type field.

Returns
Type std::string associated with the Object

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