16 #ifndef PIXEL_OBJECT_H_INCLUDED 17 #define PIXEL_OBJECT_H_INCLUDED 27 #include <opencv2/core/core.hpp> 33 PixelObject(cv::Mat & crop, std::vector<cv::Point> & contour, cv::Point2d centroid,
double area,
double perimeter, cv::Scalar colour, cv::Point2d error,
double errorAngle);
103 std::vector<cv::Point> contour;
108 cv::Point2d centroid;
147 #endif // PIXEL_OBJECT_H_INCLUDED double get_perimeter()
Getter for perimeter.
Definition: pixel_object.cpp:38
std::vector< cv::Point > & get_contour()
Getter for contour.
Definition: pixel_object.cpp:26
cv::Point2d get_error()
Getter for error.
Definition: pixel_object.cpp:46
void add_object(PixelObject *o)
Adds given object to the list of objects in the frame.
Definition: frame.cpp:66
double get_error_angle()
Getter for error angle.
Definition: pixel_object.cpp:50
cv::Scalar get_colour()
Getter for colour.
Definition: pixel_object.cpp:42
double get_area()
Getter for area.
Definition: pixel_object.cpp:34
Container class for storing photos or frames of video to be processed and analyzed.
Container class for storing information about interesting objects in photos or video frames using pix...
Definition: pixel_object.h:31
cv::Point2d get_centroid()
Getter for centroid.
Definition: pixel_object.cpp:30
Frame * get_image()
Getter for image.
Definition: pixel_object.cpp:54
cv::Mat & get_cropped_image()
Getter for cropped image.
Definition: pixel_object.cpp:58