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