Fawkes API  Fawkes Development Version
firevision::ShapeModel Class Referenceabstract

Shape model interface. More...

#include <>>

Inheritance diagram for firevision::ShapeModel:

Public Member Functions

virtual ~ShapeModel ()
 Virtual empty destructor. More...
 
virtual std::string getName (void) const =0
 Get name of shape model. More...
 
virtual int parseImage (unsigned char *buffer, ROI *roi)=0
 Parse image for given ROI. More...
 
virtual int getShapeCount (void) const =0
 Get number of shapes. More...
 
virtual ShapegetShape (int id) const =0
 Get specific shape. More...
 
virtual ShapegetMostLikelyShape (void) const =0
 Get best candidate. More...
 

Detailed Description

Shape model interface.

Definition at line 49 of file shapemodel.h.

Constructor & Destructor Documentation

◆ ~ShapeModel()

firevision::ShapeModel::~ShapeModel ( )
virtual

Virtual empty destructor.

Definition at line 83 of file shapemodel.cpp.

Member Function Documentation

◆ getMostLikelyShape()

Shape * firevision::ShapeModel::getMostLikelyShape ( void  ) const
pure virtual

Get best candidate.

Returns
best candidate shape, do not free.

Implemented in firevision::RhtLinesModel, firevision::HtLinesModel, firevision::RcdCircleModel, and firevision::RhtCircleModel.

◆ getName()

std::string firevision::ShapeModel::getName ( void  ) const
pure virtual

Get name of shape model.

Returns
name of shape model.

Implemented in firevision::RhtLinesModel, firevision::HtLinesModel, firevision::RcdCircleModel, and firevision::RhtCircleModel.

◆ getShape()

Shape * firevision::ShapeModel::getShape ( int  id) const
pure virtual

Get specific shape.

Parameters
idshape ID
Returns
shape, do NOT free!

Implemented in firevision::RhtLinesModel, firevision::HtLinesModel, firevision::RcdCircleModel, and firevision::RhtCircleModel.

◆ getShapeCount()

int firevision::ShapeModel::getShapeCount ( void  ) const
pure virtual

Get number of shapes.

Returns
number of shapes.

Implemented in firevision::RhtLinesModel, firevision::HtLinesModel, firevision::RcdCircleModel, and firevision::RhtCircleModel.

◆ parseImage()

int firevision::ShapeModel::parseImage ( unsigned char *  buffer,
ROI roi 
)
pure virtual

Parse image for given ROI.

Parameters
bufferimage buffer
roiROI
Returns
number of shapes found

Implemented in firevision::RhtLinesModel, firevision::HtLinesModel, firevision::RcdCircleModel, and firevision::RhtCircleModel.


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