SMIL  1.0.4

Line3DSE - 3D structuring element of arbitrary length and direction starting at the origin. More...

Detailed Description

Line3DSE - 3D structuring element of arbitrary length and direction starting at the origin.

The line is defined with the help of a Besenham algorithm

Note
  • one edge of the structuring element is at the origin. So this S.E. isn't symetric. If you need a symetric S.E. you need to compose it with its transposed. As an example :
       import smilPython as sp
    
       # this way
       se = sp.Line3DSE(10, 0, 45)
       se = sp.merge(se.transpose())
    
       # or this way
       se = sp.Line3DSE(10, 0, 45)
       se = sp.merge(se, se.transpose())
    

#include <DStructuringElement.h>

+ Inheritance diagram for Line3DSE:
+ Collaboration diagram for Line3DSE:

Public Member Functions

 Line3DSE (int length, double theta, double zeta)
 Line3DSE() - constructor. More...
 
- Public Member Functions inherited from StrElt
 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...
 
StrEltoperator= (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)
 
BaseObjectoperator= (const BaseObject &rhs)
 
CoregetCoreInstance ()
 
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
 

Additional Inherited Members

- Public Types inherited from BaseObject
typedef void parentClass
 
typedef void(BaseObject::* voidMemberFunc) ()
 
- Public Attributes inherited from StrElt
vector< IntPointpoints
 List of neighbor points.
 
bool odd
 
seType seT
 
UINT size
 
- Public Attributes inherited from BaseObject
bool triggerEvents
 
- Protected Attributes inherited from BaseObject
bool registered
 
string className
 
string name
 

Constructor & Destructor Documentation

◆ Line3DSE()

Line3DSE ( int  length,
double  theta,
double  zeta 
)
inline

Line3DSE() - constructor.

Parameters
[in]length: length of the segment
[in]theta: angle (in radians) from the Structuring Segment projected in a slice with the horizontal line
[in]zeta: elevation angle - angle (in degres) between the Structuring element and each slice
Note
  • the angle theta is defined in the usual counterclockwise direction (trigonometric convention).

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