ICF 3.0.5.47
Technical documentation of ICF Libraries
iipr::CHoughLineFromPosFinderComp Class Reference

Finder using Hough transformation to find the lines from the point cloud. More...

#include <CHoughLineFromPosFinderComp.h>

Inheritance diagram for iipr::CHoughLineFromPosFinderComp:
Collaboration diagram for iipr::CHoughLineFromPosFinderComp:

Public Types

enum  MessageId { FOUND_LINE = 0x934d750 , HOUGH_SPACE }
 
typedef QList< i2d::CLine2dLines
 
typedef ilog::CLoggerComponentBase BaseClass
 
- Public Types inherited from ilog::TLoggerCompWrap< Base >
enum  MessageId { MI_BAD_DEPENDENCY = 0x8a340 }
 
typedef Base BaseClass
 
typedef ilog::CLoggerBase BaseClass2
 
- Public Types inherited from iproc::TSyncProcessorWrap< IFeatureToFeatureProcessor >
typedef IFeatureToFeatureProcessor BaseClass
 

Public Member Functions

virtual iproc::CTaskState DoConvertFeatures (const iprm::IParamsSet *paramsPtr, const IFeaturesProvider &container, IFeaturesConsumer &results) override
 
virtual iproc::CTaskState DoProcessing (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, bool allowAsync=false, iproc::IProgressManager *progressManagerPtr=nullptr) override
 
- Public Member Functions inherited from ilog::CLoggerBase
 CLoggerBase ()
 
const QByteArray & GetVerboseSenderId () const
 Get sender ID for verbose messages.
 
void SetVerboseSenderId (const QByteArray &id)
 Set sender ID for verbose messages.
 
void SetLogPtr (ilog::IMessageConsumer *logPtr) override
 Install log.
 
ilog::IMessageConsumerGetLogPtr () const override
 Get log.
 
- Public Member Functions inherited from ilog::ILoggable
- Public Member Functions inherited from iproc::TSyncProcessorWrap< IFeatureToFeatureProcessor >
 TSyncProcessorWrap ()
 
int GetProcessorState (const iprm::IParamsSet *paramsPtr) const override
 
bool AreParamsAccepted (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, const istd::IChangeable *outputPtr) const override
 
void InitProcessor (const iprm::IParamsSet *paramsPtr, bool doReset) override
 

Protected Member Functions

virtual bool FindLines (const iprm::IParamsSet *paramsPtr, int maxLines, const i2d::CPolypoint &points, IFeaturesConsumer &results)
 
bool CreateHoughSpace ()
 
i2d::CVector2d CalcHoughPos (const i2d::CVector2d &point1, const i2d::CVector2d &point2) const
 
i2d::CLine2d CalcCorrespondingLine (const i2d::CVector2d &houghPos) const
 
void UpdateHoughSpace (const i2d::CVector2d &point1, const i2d::CVector2d &point2)
 
void OnComponentCreated () override
 
- Protected Member Functions inherited from ilog::TLoggerCompWrap< Base >
virtual void DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override
 Decorate message parts before outputting.
 
void OnComponentCreated () override
 
void OnComponentDestroyed () override
 
- Protected Member Functions inherited from ilog::CLoggerBase
bool IsVerboseEnabled () const
 Check if verbose messages are enabled.
 
bool SendVerboseMessage (const QString &message, const QString &messageSource=QString()) const
 Send verbose message.
 
bool SendInfoMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send info message to log.
 
bool SendWarningMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send warning message to log.
 
bool SendErrorMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send error message to log.
 
bool SendCriticalMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send critical message to log.
 
bool SendInfoMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once info message to log.
 
bool SendWarningMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once warning message to log.
 
bool SendErrorMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once error message to log.
 
bool SendCriticalMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once critical message to log.
 
bool SendUserMessage (const istd::IInformationProvider *messagePtr) const
 Send message with user object.
 
bool AllowMessageOnceAgain (int id)
 Reset message lock.
 
bool IsLogConsumed (const istd::IInformationProvider::InformationCategory *categoryPtr=nullptr, const int *flagsPtr=nullptr) const override
 Check if any log message is consumed.
 
bool SendLogMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const override
 Send any message to log.
 
- Protected Member Functions inherited from istd::ILogger

Additional Inherited Members

- Protected Attributes inherited from ilog::CLoggerBase
QSet< int > m_onceMessageIds
 

Detailed Description

Finder using Hough transformation to find the lines from the point cloud.

The outouted lines will be sorted from the best one (with the highest weight) to the worst.

Definition at line 31 of file CHoughLineFromPosFinderComp.h.

Member Typedef Documentation

◆ BaseClass

◆ Lines

Member Enumeration Documentation

◆ MessageId

Enumerator
FOUND_LINE 
HOUGH_SPACE 

Definition at line 54 of file CHoughLineFromPosFinderComp.h.

Member Function Documentation

◆ CalcCorrespondingLine()

i2d::CLine2d iipr::CHoughLineFromPosFinderComp::CalcCorrespondingLine ( const i2d::CVector2d & houghPos) const
protected

◆ CalcHoughPos()

i2d::CVector2d iipr::CHoughLineFromPosFinderComp::CalcHoughPos ( const i2d::CVector2d & point1,
const i2d::CVector2d & point2 ) const
protected

◆ CreateHoughSpace()

bool iipr::CHoughLineFromPosFinderComp::CreateHoughSpace ( )
protected

◆ DoConvertFeatures()

virtual iproc::CTaskState iipr::CHoughLineFromPosFinderComp::DoConvertFeatures ( const iprm::IParamsSet * paramsPtr,
const IFeaturesProvider & container,
IFeaturesConsumer & results )
overridevirtual

◆ DoProcessing()

virtual iproc::CTaskState iipr::CHoughLineFromPosFinderComp::DoProcessing ( const iprm::IParamsSet * paramsPtr,
const istd::IPolymorphic * inputPtr,
istd::IChangeable * outputPtr,
bool allowAsync = false,
iproc::IProgressManager * progressManagerPtr = nullptr )
overridevirtual

◆ FindLines()

virtual bool iipr::CHoughLineFromPosFinderComp::FindLines ( const iprm::IParamsSet * paramsPtr,
int maxLines,
const i2d::CPolypoint & points,
IFeaturesConsumer & results )
protectedvirtual

◆ OnComponentCreated()

void iipr::CHoughLineFromPosFinderComp::OnComponentCreated ( )
overrideprotected

◆ UpdateHoughSpace()

void iipr::CHoughLineFromPosFinderComp::UpdateHoughSpace ( const i2d::CVector2d & point1,
const i2d::CVector2d & point2 )
protected

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

© Witold Gantzke and Kirill Lepskiy