Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | List of all members
iipr::CLensCorrFindSupplierComp Class Reference

Supplier of bitmap built on difference of two images. More...

#include <CLensCorrFindSupplierComp.h>

Inheritance diagram for iipr::CLensCorrFindSupplierComp:
iinsp::TSupplierCompWrap< icalib::CSimpleLensCorrection > i2d::ICalibrationProvider iinsp::CSupplierCompBase istd::IChangeable ilog::TLoggerCompWrap< Base > iinsp::ISupplier istd::IPolymorphic ilog::CLoggerBase istd::IChangeable ilog::ILoggable istd::ILogger istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Classes

struct  CorrectionInfo
 
struct  CorrectionLineInfo
 
struct  FeatureInfo
 
class  FeaturesConsumer
 

Public Types

typedef
iinsp::TSupplierCompWrap
< icalib::CSimpleLensCorrection
BaseClass
 
- Public Types inherited from iinsp::TSupplierCompWrap< icalib::CSimpleLensCorrection >
typedef CSupplierCompBase BaseClass
 
typedef
icalib::CSimpleLensCorrection 
ProductType
 
- Public Types inherited from iinsp::CSupplierCompBase
enum  MessageId { MI_DURATION_TIME = 0x077a1b, MI_GEOMETRICAL_RESULT, MI_SUPPLIER_RESULTS_STATUS, MI_INTERMEDIATE }
 ID of messages. More...
 
typedef ilog::CLoggerComponentBase BaseClass
 
- Public Types inherited from iinsp::ISupplier
enum  WorkStatus {
  WS_INVALID, WS_INIT, WS_LOCKED, WS_OK,
  WS_CANCELED, WS_FAILED
}
 
enum  ChangeFlags { CF_SUPPLIER_RESULTS = 0x6326415 }
 Data model change notification flags. More...
 
enum  MessageContainerType { MCT_RESULTS, MCT_TEMP, MTC_LAST = MCT_TEMP }
 

Public Member Functions

virtual const i2d::ICalibration2dGetCalibration () const
 
- Public Member Functions inherited from iinsp::TSupplierCompWrap< icalib::CSimpleLensCorrection >
virtual int ProcessWorkOutput ()
 
virtual void ClearWorkResults ()
 Remove all stored work results. More...
 
- Public Member Functions inherited from iinsp::CSupplierCompBase
 CSupplierCompBase ()
 
virtual int GetWorkStatus () const
 Get status of last work. More...
 
virtual imod::IModelGetWorkStatusModel () const
 Get access to the status model of the supplier. More...
 
virtual void InvalidateSupplier ()
 Called to signalize that this supplier is invalid. More...
 
virtual void EnsureWorkInitialized ()
 Force the supplier to initialize its work. More...
 
virtual void EnsureWorkFinished ()
 Ensure that all objects are produced. More...
 
virtual const
ilog::IMessageContainer
GetWorkMessages (int containerType) const
 Get messages outputted by this work. More...
 
virtual iprm::IParamsSetGetModelParametersSet () const
 Get parameter set using by this supplier. More...
 
- Public Member Functions inherited from ilog::ILoggable
virtual void SetLogPtr (IMessageConsumer *logPtr)=0
 
virtual IMessageConsumerGetLogPtr () const =0
 
virtual void SetTracingEnabled (bool trace)=0
 
virtual bool IsTracingEnabled () const =0
 

Protected Types

typedef QList< FeatureInfoFeatures
 
typedef QList< CorrectionInfoCorrectionInfos
 
typedef QList< CorrectionLineInfoAllCorrectionInfos
 
- Protected Types inherited from iinsp::CSupplierCompBase
typedef imod::TModelWrap< StatusStatusModel
 
typedef imod::TModelWrap
< ilog::CMessageContainer
MessageContainer
 

Protected Member Functions

bool CalculateCalibrationFactors (const AllCorrectionInfos &allCorrectionInfos, bool searchCenterFlag, const icalib::CSimpleLensCorrection &inputCorrection, icalib::CSimpleLensCorrection &result) const
 
void AddCorrectPointsMessage (const AllCorrectionInfos &allCorrectionInfos, const icalib::CSimpleLensCorrection &inputCorrection, const i2d::CVector2d &imageCenter) const
 
bool CalculateCalibration (const iimg::IBitmap &image, icalib::CSimpleLensCorrection &result) const
 
i2d::CVector2d CalcHoughPos (const i2d::CVector2d &point1, const i2d::CVector2d &point2, const i2d::CVector2d &imageCenter, const istd::CIndex2d &spaceSize) const
 
i2d::CLine2d CalcCorrespondingLine (const i2d::CVector2d &houghPos, const i2d::CVector2d &imageCenter, const istd::CIndex2d &spaceSize) const
 
void UpdateHoughSpace (const i2d::CVector2d &point1, const i2d::CVector2d &point2, double weight, const i2d::CVector2d &imageCenter, ialgo::CHoughSpace2d &space) const
 
virtual int ProduceObject (ProductType &result) const
 Produce single object. More...
 
virtual void OnComponentCreated ()
 
- Protected Member Functions inherited from iinsp::TSupplierCompWrap< icalib::CSimpleLensCorrection >
const
icalib::CSimpleLensCorrection
GetWorkProduct () const
 Get current work product, if work was done correctly. More...
 
- Protected Member Functions inherited from iinsp::CSupplierCompBase
virtual bool InitializeWork ()
 Called if the new work should be initialized. More...
 
virtual void OnParametersChanged ()
 Called if the supplier parameters was changed. More...
 
virtual void RegisterSupplierInput (imod::IModel *modelPtr, ISupplier *supplierPtr=NULL)
 Register supplier input. More...
 
virtual void UnregisterSupplierInput (imod::IModel *modelPtr)
 Unregister supplier input. More...
 
virtual QString GetDiagnosticName () const
 Get supplier name used for diagnostic reasons. More...
 
virtual bool IsMessageContainerSupported (int containerType) const
 Check if message container is supported. More...
 
virtual void AddMessage (const istd::IInformationProvider *messagePtr, int containerType=MCT_RESULTS) const
 Add ilog::CMessage to the internal message container (also from const functions). More...
 
virtual void OnComponentDestroyed ()
 
- Protected Member Functions inherited from ilog::CLoggerBase
virtual void DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const
 

Additional Inherited Members

- Protected Attributes inherited from iinsp::TSupplierCompWrap< icalib::CSimpleLensCorrection >
istd::TDelPtr
< icalib::CSimpleLensCorrection
m_productPtr
 
- Protected Attributes inherited from iinsp::CSupplierCompBase
MessageContainer m_messageContainers [MTC_LAST+1]
 

Detailed Description

Supplier of bitmap built on difference of two images.

Definition at line 29 of file CLensCorrFindSupplierComp.h.

Member Typedef Documentation

Definition at line 86 of file CLensCorrFindSupplierComp.h.

Definition at line 34 of file CLensCorrFindSupplierComp.h.

Definition at line 79 of file CLensCorrFindSupplierComp.h.

Definition at line 62 of file CLensCorrFindSupplierComp.h.

Member Function Documentation

void iipr::CLensCorrFindSupplierComp::AddCorrectPointsMessage ( const AllCorrectionInfos allCorrectionInfos,
const icalib::CSimpleLensCorrection inputCorrection,
const i2d::CVector2d imageCenter 
) const
protected
i2d::CLine2d iipr::CLensCorrFindSupplierComp::CalcCorrespondingLine ( const i2d::CVector2d houghPos,
const i2d::CVector2d imageCenter,
const istd::CIndex2d spaceSize 
) const
protected
i2d::CVector2d iipr::CLensCorrFindSupplierComp::CalcHoughPos ( const i2d::CVector2d point1,
const i2d::CVector2d point2,
const i2d::CVector2d imageCenter,
const istd::CIndex2d spaceSize 
) const
protected
bool iipr::CLensCorrFindSupplierComp::CalculateCalibration ( const iimg::IBitmap image,
icalib::CSimpleLensCorrection result 
) const
protected
bool iipr::CLensCorrFindSupplierComp::CalculateCalibrationFactors ( const AllCorrectionInfos allCorrectionInfos,
bool  searchCenterFlag,
const icalib::CSimpleLensCorrection inputCorrection,
icalib::CSimpleLensCorrection result 
) const
protected
virtual const i2d::ICalibration2d* iipr::CLensCorrFindSupplierComp::GetCalibration ( ) const
virtual
virtual void iipr::CLensCorrFindSupplierComp::OnComponentCreated ( )
protectedvirtual

Reimplemented from iinsp::CSupplierCompBase.

virtual int iipr::CLensCorrFindSupplierComp::ProduceObject ( ProductType result) const
protectedvirtual

Produce single object.

Returns
work status.
See Also
iinsp::WorkStatus

Implements iinsp::TSupplierCompWrap< icalib::CSimpleLensCorrection >.

void iipr::CLensCorrFindSupplierComp::UpdateHoughSpace ( const i2d::CVector2d point1,
const i2d::CVector2d point2,
double  weight,
const i2d::CVector2d imageCenter,
ialgo::CHoughSpace2d space 
) const
protected

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy