25 #ifndef _FIREVISION_MODELS_SHAPE_CIRCLE_H_
26 #define _FIREVISION_MODELS_SHAPE_CIRCLE_H_
28 #include <fvmodels/shape/shapemodel.h>
29 #include <fvutils/base/roi.h>
30 #include <fvutils/base/types.h>
31 #include <utils/math/types.h>
36 namespace firevision {
39 const unsigned int TBY_CIRCLE_RADIUS_MAX = 600;
40 const unsigned int TBY_CIRCLE_RADIUS_MIN = 2;
51 bool isClose(
unsigned int in_roi_x,
unsigned int in_roi_y);
53 void fitCircle(std::vector<fawkes::upoint_t> &points);
void setMargin(unsigned int margin)
Set margin around shape.
void fitCircle(std::vector< fawkes::upoint_t > &points)
Fit circle.
float radius
Radius of object.
center_in_roi_t center
Center of object in ROI.
void printToStream(std::ostream &stream)
Print info.
bool isClose(unsigned int in_roi_x, unsigned int in_roi_y)
Check if the given point is close to the shape.
int count
Number of pixels.
unsigned int margin
Margin around shape.