Public Member Functions | List of all members
ialgo::TIHoughSpace< Dimensions, Element >::ResultsConsumer Class Referenceabstract

#include <TIHoughSpace.h>

Inheritance diagram for ialgo::TIHoughSpace< Dimensions, Element >::ResultsConsumer:
istd::IPolymorphic ialgo::TSimpleSpaceResultConsumer< Dimensions, Element >

Public Member Functions

virtual QList< int > GetSupportedNeghboursCount () const =0
 Get list of number of neighbours supprted by this consumer. More...
 
virtual void OnProcessingBegin (const TIHoughSpace< Dimensions, Element > &space, const Element &minValue)=0
 Called when processing is started. More...
 
virtual void OnProcessingEnd (const TIHoughSpace< Dimensions, Element > &space)=0
 Called when processing is finished. More...
 
virtual bool OnMaximumFound (const TIHoughSpace< Dimensions, Element > &space, const istd::TIndex< Dimensions > &position, const Element &value, const Element *neghboursPtr, int neghboursCount, Element &minValue)=0
 Will be called when some local maximum is reached. More...
 

Detailed Description

template<int Dimensions, class Element = double>
class ialgo::TIHoughSpace< Dimensions, Element >::ResultsConsumer

Definition at line 24 of file TIHoughSpace.h.

Member Function Documentation

template<int Dimensions, class Element = double>
virtual QList<int> ialgo::TIHoughSpace< Dimensions, Element >::ResultsConsumer::GetSupportedNeghboursCount ( ) const
pure virtual

Get list of number of neighbours supprted by this consumer.

For example if it works correctly with 4 and 8 neighbourshood it should return {4, 8}.

Implemented in ialgo::TSimpleSpaceResultConsumer< Dimensions, Element >.

Referenced by ialgo::TGeneralHoughSpace< Dimensions, Element >::AnalyseHoughSpace().

template<int Dimensions, class Element = double>
virtual bool ialgo::TIHoughSpace< Dimensions, Element >::ResultsConsumer::OnMaximumFound ( const TIHoughSpace< Dimensions, Element > &  space,
const istd::TIndex< Dimensions > &  position,
const Element &  value,
const Element *  neghboursPtr,
int  neghboursCount,
Element &  minValue 
)
pure virtual

Will be called when some local maximum is reached.

Parameters
spaceHough space.
positionelement position where maximum was found.
valuevalue of element at given position.
neghboursPtrlist of nighbours.
neghboursCountnumber of neighbours in the list. Must be one of returned by GetSupportedNeghboursCount().
minValuecurrent minimal value, it can be correctd by this function to improve search performance.
Returns
true, if object found and no more itarations are needed.

Implemented in ialgo::TSimpleSpaceResultConsumer< Dimensions, Element >.

Referenced by ialgo::TGeneralHoughSpace< Dimensions, Element >::AnalyseHoughSpace().

template<int Dimensions, class Element = double>
virtual void ialgo::TIHoughSpace< Dimensions, Element >::ResultsConsumer::OnProcessingBegin ( const TIHoughSpace< Dimensions, Element > &  space,
const Element &  minValue 
)
pure virtual
template<int Dimensions, class Element = double>
virtual void ialgo::TIHoughSpace< Dimensions, Element >::ResultsConsumer::OnProcessingEnd ( const TIHoughSpace< Dimensions, Element > &  space)
pure virtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy