SMIL
1.0.4
|
Base structuring element. More...
Base structuring element.
#include <DStructuringElement.h>
Public Member Functions | |
StrElt (UINT s=1) | |
Class constructor - generic structurant element. More... | |
StrElt (const StrElt &rhs) | |
Class constructor - clone another structuring element. More... | |
StrElt (bool oddSE, vector< UINT > indexList) | |
Class constructor. More... | |
IntPoint | getPoint (const UINT i) |
getPoint() - Get the coordinates (as a point) of the pixel of order i in the structuring element More... | |
UINT | getSize () const |
getSize() - Get the size of the Structuring Element More... | |
StrElt & | operator= (const StrElt &rhs) |
Clone a structuring element. More... | |
void | clone (const StrElt &rhs) |
clone() - Clone a structuring element More... | |
void | addPoint (const UINT index) |
addPoint() - Add a point to the structurant element based on an index on a grid. More... | |
void | addPoint (int x, int y, int z=0) |
addPoint() - Add a point to the structurant element given its coordinates More... | |
void | addPoint (const IntPoint &pt) |
addPoint() - Add a point to the structurant element given its coordinates in a IntPoint data structure. More... | |
const StrElt | operator() (int s=1) const |
operator() - | |
StrElt | homothety (const UINT s) const |
homothety() - Build and return an homothetic SE with size s More... | |
StrElt | transpose () const |
transpose() - Return the opposite SE (symmetry with respect to 0) More... | |
StrElt | merge (const StrElt &rhs) |
merge() - Merge a structuring element More... | |
StrElt | noCenter () const |
Return the SE with no center. More... | |
virtual seType | getType () const |
getType() - Get the type of the structuring element More... | |
void | setName (string name) |
setName() - Set the name of the structuring element More... | |
void | setName () |
setName() - Set the name of the structuring element More... | |
string | getName () |
getName() - Get the name of the structuring element More... | |
virtual void | printSelf (ostream &os=std::cout, string indent="") const |
printSelf() - Print the contents of the structuring element More... | |
virtual void | printSelf (string indent) const |
printSelf() - Print the contents of the structuring element More... | |
Public Member Functions inherited from BaseObject | |
BaseObject (const char *_className, bool _register=true) | |
BaseObject (const BaseObject &rhs, bool _register=true) | |
BaseObject & | operator= (const BaseObject &rhs) |
Core * | getCoreInstance () |
virtual const char * | getInfoString (const char *="") const |
virtual const char * | getClassName () const |
virtual void | setName (const char *_name) |
virtual const char * | getName () const |
virtual size_t | getAllocatedSize () const |
Public Attributes | |
vector< IntPoint > | points |
List of neighbor points. | |
bool | odd |
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 | |
bool | registered |
string | className |
string | name |
|
inline |
Class constructor - generic structurant element.
[in] | s | : size of the structinrg element |
Class constructor - clone another structuring element.
[in] | rhs | : structuring element |
|
inline |
Class constructor.
Construct a structuring element with points defined by their indexes.
[in] | oddSE | : Specify if we want to use an hexagonal grid (true) or a square grid (false) |
[in] | indexList | : The list of point indexes |
The index values are defined for each grid type as follow:
Example:
|
inline |
getPoint() - Get the coordinates (as a point) of the pixel of order i
in the structuring element
[in] | i | : pixel index |
|
inline |
getSize() - Get the size of the Structuring Element
Clone a structuring element.
Clone a strunturing element to, eventually, create another one based on it.
Example:
void clone | ( | const StrElt & | rhs | ) |
clone() - Clone a structuring element
[in] | rhs | : structuring element to be cloned |
void addPoint | ( | const UINT | index | ) |
addPoint() - Add a point to the structurant element based on an index on a grid.
Index are defined as in the following drawings :
[in] | index | : index to predefined point coordinates, as above. |
Example:
void addPoint | ( | int | x, |
int | y, | ||
int | z = 0 |
||
) |
addPoint() - Add a point to the structurant element given its coordinates
[in] | x,y,[z] | : point coordinates |
void addPoint | ( | const IntPoint & | pt | ) |
addPoint() - Add a point to the structurant element given its coordinates in a IntPoint
data structure.
[in] | pt | : a point to be added to the structuring element (itself) |
StrElt homothety | ( | const UINT | s | ) | const |
homothety() - Build and return an homothetic SE with size s
[in] | s | : size of the new structuring element |
StrElt transpose | ( | ) | const |
transpose() - Return the opposite SE (symmetry with respect to 0)
merge() - Merge a structuring element
[in] | rhs | : structuring element to be merged |
StrElt noCenter | ( | ) | const |
Return the SE with no center.
Remove the central point of the Structuring Element
|
inlinevirtual |
getType() - Get the type of the structuring element
|
inline |
setName() - Set the name of the structuring element
[in] | name | - the new name |
|
inline |
setName() - Set the name of the structuring element
Set the structuring element based on the type field seT
|
inline |
getName() - Get the name of the structuring element
|
virtual |
printSelf() - Print the contents of the structuring element
Reimplemented from BaseObject.
|
inlinevirtual |
printSelf() - Print the contents of the structuring element