Public Types | Public Member Functions | List of all members
iblob::CBlobFeature Class Reference

Implementation of the blob-based feature. More...

#include <CBlobFeature.h>

Inheritance diagram for iblob::CBlobFeature:
iipr::CObjectFeature iipr::TWeightedFeatureWrap< i2d::CPosition2d > imeas::CSimpleNumericValue i2d::CPosition2d imeas::INumericValue i2d::CObject2dBase iser::ISerializable i2d::IObject2d istd::IChangeable iser::IObject i2d::ICalibrationProvider istd::IPolymorphic iser::ISerializable istd::IChangeable istd::IChangeable istd::IPolymorphic istd::IPolymorphic

Public Types

typedef iipr::CObjectFeature BaseClass
 
- Public Types inherited from iipr::CObjectFeature
typedef TWeightedFeatureWrap
< i2d::CPosition2d
BaseClass
 
- Public Types inherited from iipr::TWeightedFeatureWrap< i2d::CPosition2d >
typedef imeas::CSimpleNumericValue BaseClass
 
typedef i2d::CPosition2d BaseClass2
 
- Public Types inherited from imeas::INumericValue
enum  ValueTypeId {
  VTI_AUTO = 0, VTI_WEIGHT, VTI_POSITION, VTI_RADIUS,
  VTI_SCALE, VTI_ANGLE, VTI_ALPHA, VTI_LENGTH,
  VTI_2D_TRANSFORM, VTI_2D_LINE
}
 Define standard numeric value types. More...
 

Public Member Functions

 CBlobFeature ()
 
 CBlobFeature (double area, double perimeter, const i2d::CVector2d &position, double angle=0.0)
 
double GetCircularity () const
 
double GetCompactness () const
 
double GetPerimeter () const
 
double GetArea () const
 
virtual bool Serialize (iser::IArchive &archive)
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 
virtual istd::IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 
- Public Member Functions inherited from iipr::CObjectFeature
 CObjectFeature ()
 
 CObjectFeature (double weight, const i2d::CVector2d &position, double angle=0.0, const i2d::CVector2d &scale=i2d::CVector2d(1.0, 1.0))
 
double GetAngle () const
 
i2d::CVector2d GetScale () const
 
QByteArray GetObjectId () const
 
void SetObjectId (const QByteArray &objectId)
 
const i2d::ITransformation2dGetTransformation () const
 
virtual bool IsValueTypeSupported (ValueTypeId valueTypeId) const
 Check if the given value type (or value component) is supported. More...
 
virtual imath::CVarVector GetComponentValue (ValueTypeId valueTypeId) const
 Get access to component value of the given type. More...
 
- Public Member Functions inherited from iipr::TWeightedFeatureWrap< i2d::CPosition2d >
 TWeightedFeatureWrap (double weight=1.0)
 
double GetWeight () const
 
void SetWeight (double weight)
 
- Public Member Functions inherited from imeas::CSimpleNumericValue
virtual const INumericConstraintsGetNumericConstraints () const
 Get parameter constraints describing possible parameter values. More...
 
virtual imath::CVarVector GetValues () const
 Get list of numeric values. More...
 
virtual bool SetValues (const imath::CVarVector &values)
 Set list of numeric values. More...
 
- Public Member Functions inherited from i2d::CPosition2d
virtual int GetSupportedOperations () const
 
- Public Member Functions inherited from i2d::CObject2dBase
virtual bool Transform (const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL)
 
virtual bool InvTransform (const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL)
 
virtual bool GetTransformed (const ITransformation2d &transformation, IObject2d &result, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL) const
 
virtual bool GetInvTransformed (const ITransformation2d &transformation, IObject2d &result, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL) const
 
virtual CVector2d GetCenter () const =0
 
virtual void MoveCenterTo (const CVector2d &position)=0
 
virtual CRectangle GetBoundingBox () const =0
 
virtual QByteArray GetFactoryId () const
 
virtual bool Serialize (IArchive &archive)=0
 
- Public Member Functions inherited from i2d::IObject2d
virtual void SetCalibration (const ICalibration2d *calibrationPtr, bool releaseFlag=false)=0
 
- Public Member Functions inherited from i2d::ICalibrationProvider
virtual const ICalibration2dGetCalibration () const =0
 

Additional Inherited Members

- Protected Attributes inherited from iipr::TWeightedFeatureWrap< i2d::CPosition2d >
double m_weight
 
- Protected Attributes inherited from imeas::CSimpleNumericValue
imath::CVarVector m_values
 

Detailed Description

Implementation of the blob-based feature.

Definition at line 19 of file CBlobFeature.h.

Member Typedef Documentation

Definition at line 22 of file CBlobFeature.h.

Constructor & Destructor Documentation

iblob::CBlobFeature::CBlobFeature ( )
iblob::CBlobFeature::CBlobFeature ( double  area,
double  perimeter,
const i2d::CVector2d position,
double  angle = 0.0 
)

Member Function Documentation

virtual istd::IChangeable* iblob::CBlobFeature::CloneMe ( CompatibilityMode  mode = CM_WITHOUT_REFS) const
virtual

Reimplemented from iipr::CObjectFeature.

virtual bool iblob::CBlobFeature::CopyFrom ( const IChangeable &  object,
CompatibilityMode  mode = CM_WITHOUT_REFS 
)
virtual

Reimplemented from iipr::CObjectFeature.

double iblob::CBlobFeature::GetArea ( ) const
double iblob::CBlobFeature::GetCircularity ( ) const
double iblob::CBlobFeature::GetCompactness ( ) const
double iblob::CBlobFeature::GetPerimeter ( ) const
virtual bool iblob::CBlobFeature::Serialize ( iser::IArchive archive)
virtual

Reimplemented from iipr::CObjectFeature.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy