SMIL  0.9

Base structuring element. More...

#include <DStructuringElement.h>

+ Inheritance diagram for StrElt:
+ Collaboration diagram for StrElt:

Public Member Functions

void addPoint (const UINT index)
void addPoint (int x, int y, int z=0)
void addPoint (const IntPoint &pt)
void clone (const StrElt &rhs)
IntPoint getPoint (const UINT i)
UINT getSize () const
virtual seType getType () const
StrElt homothety (const UINT s) const
 Construct and return an homothetic SE with size s.
StrElt noCenter () const
 Return the SE with no center.
const StrElt operator() (int s=1) const
StrEltoperator= (const StrElt &rhs)
virtual void printSelf (ostream &os=std::cout, string indent="") const
 StrElt (UINT s=1)
 StrElt (const StrElt &rhs)
 StrElt (bool oddSE, UINT nbrPts,...)
 StrElt (bool oddSE, vector< UINT > indexList)
 Construct a structuring element with points defined by their indexes. More...
StrElt transpose () const
 Return the opposite SE (symmetry with respect to 0)
- Public Member Functions inherited from BaseObject
 BaseObject (const char *_className, bool _register=true)
 BaseObject (const BaseObject &rhs, bool _register=true)
virtual size_t getAllocatedSize () const
virtual const char * getClassName () const
CoregetCoreInstance ()
virtual const char * getInfoString (const char *="") const
virtual const char * getName () const
BaseObjectoperator= (const BaseObject &rhs)
virtual void setName (const char *_name)

Public Attributes

bool odd
vector< IntPointpoints
 List of neighbor points.
seType seT
UINT size
- Public Attributes inherited from BaseObject
bool triggerEvents

Additional Inherited Members

- Public Types inherited from BaseObject
typedef void parentClass
typedef void(BaseObject::* voidMemberFunc) ()
- Protected Attributes inherited from BaseObject
string className
string name
bool registered

Detailed Description

Base structuring element.

Constructor & Destructor Documentation

StrElt ( bool  oddSE,
vector< UINT >  indexList 

Construct a structuring element with points defined by their indexes.

oddSESpecify if we want to use an hexagonal grid (true) or a square grid (false)
indexListThe list of point indexes

The index values are defined for each grid type as follow:



1 # Create a diagonal SE with the two points (0,0) and (1,1),
2 # on the square grid:
3 diagSE_s = StrElt(False, (0,8))
4 # on the hexagonal grid:
5 diagSE_h = StrElt(True, (0,6))

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