Fawkes API  Fawkes Development Version
firevision::Shape Class Referenceabstract

Shape interface. More...

#include <>>

Inheritance diagram for firevision::Shape:

Public Member Functions

virtual ~Shape ()
 Virtual empty destructor. More...
 
virtual void setMargin (unsigned int margin)=0
 Set margin around shape. More...
 
virtual bool isClose (unsigned int in_roi_x, unsigned int in_roi_y)=0
 Check if the given point is close to the shape. More...
 

Detailed Description

Shape interface.

Generic API for accessing using shapes.

Definition at line 39 of file shapemodel.h.

Constructor & Destructor Documentation

◆ ~Shape()

firevision::Shape::~Shape ( )
virtual

Virtual empty destructor.

Definition at line 49 of file shapemodel.cpp.

Member Function Documentation

◆ isClose()

bool firevision::Shape::isClose ( unsigned int  in_roi_x,
unsigned int  in_roi_y 
)
pure virtual

Check if the given point is close to the shape.

Parameters
in_roi_xx coordinate of point in the same ROI as the shape
in_roi_yy coordinate of point in the same ROI as the shape
Returns
true if point is close to shape, false otherwise

Implemented in firevision::Circle, and firevision::LineShape.

Referenced by firevision::FilterShapeRemover::apply().

◆ setMargin()

void firevision::Shape::setMargin ( unsigned int  margin)
pure virtual

Set margin around shape.

Parameters
marginmargin

Implemented in firevision::Circle, and firevision::LineShape.

Referenced by firevision::FilterShapeRemover::apply().


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