Public Types | Public Member Functions | List of all members
iipr::CObjectFeature Class Reference

Implementation of a general image object feature. More...

#include <CObjectFeature.h>

Inheritance diagram for 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 ibarcode::CBarcodeSearchFeature iblob::CBlobFeature iipr::CSearchFeature

Public Types

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

 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...
 
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::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 a general image object feature.

Definition at line 19 of file CObjectFeature.h.

Member Typedef Documentation

Definition at line 22 of file CObjectFeature.h.

Constructor & Destructor Documentation

iipr::CObjectFeature::CObjectFeature ( )
iipr::CObjectFeature::CObjectFeature ( double  weight,
const i2d::CVector2d position,
double  angle = 0.0,
const i2d::CVector2d scale = i2d::CVector2d(1.0, 1.0) 
)

Member Function Documentation

virtual istd::IChangeable* iipr::CObjectFeature::CloneMe ( CompatibilityMode  mode = CM_WITHOUT_REFS) const
virtual

Reimplemented from i2d::CPosition2d.

Reimplemented in iblob::CBlobFeature, and iipr::CSearchFeature.

virtual bool iipr::CObjectFeature::CopyFrom ( const IChangeable &  object,
CompatibilityMode  mode = CM_WITHOUT_REFS 
)
virtual
double iipr::CObjectFeature::GetAngle ( ) const
virtual imath::CVarVector iipr::CObjectFeature::GetComponentValue ( ValueTypeId  valueTypeId) const
virtual

Get access to component value of the given type.

See Also
ValueTypeId
Returns
if data vector cannot be calculated it returns empty vector.

Reimplemented from iipr::TWeightedFeatureWrap< i2d::CPosition2d >.

Reimplemented in ibarcode::CBarcodeSearchFeature.

QByteArray iipr::CObjectFeature::GetObjectId ( ) const
i2d::CVector2d iipr::CObjectFeature::GetScale ( ) const
const i2d::ITransformation2d& iipr::CObjectFeature::GetTransformation ( ) const
virtual bool iipr::CObjectFeature::IsValueTypeSupported ( ValueTypeId  valueTypeId) const
virtual

Check if the given value type (or value component) is supported.

If the value component is supported you can access this via GetComponentValue method.

See Also
GetComponentValue

Reimplemented from iipr::TWeightedFeatureWrap< i2d::CPosition2d >.

Reimplemented in ibarcode::CBarcodeSearchFeature.

virtual bool iipr::CObjectFeature::Serialize ( iser::IArchive archive)
virtual
void iipr::CObjectFeature::SetObjectId ( const QByteArray &  objectId)

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy