|
latest version v1.9 - last update 10 Apr 2010 |
|
the parameters for the class distanceTransform More...
#include <ltiDistanceTransform.h>


Public Types | |
| enum | eDistanceType { EightNeighborhood, FourNeighborhood, EuclideanSqr, Euclidean, EightSED, EightSEDSqr, FourSED, FourSEDSqr } |
Public Member Functions | |
| parameters () | |
| parameters (const parameters &other) | |
| ~parameters () | |
| const char * | getTypeName () const |
| parameters & | copy (const parameters &other) |
| parameters & | operator= (const parameters &other) |
| virtual functor::parameters * | clone () const |
| virtual bool | write (ioHandler &handler, const bool complete=true) const |
| virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
| eDistanceType | distance |
the parameters for the class distanceTransform
Four distancetransformation computation types can be choosen: EightNeighbor, FourNeighbor, EuclideanSqr and Euclidean.
For two pixels p and q with position p(p.x,p.y) and q(q.x,q.y) following is valid:
| EightNeighborhood |
eight neighborhood distance |
| FourNeighborhood |
four neighborhood (city block) distance |
| EuclideanSqr |
square of euclidean distance |
| Euclidean |
euclidean distance |
| EightSED |
eight point sequential euclidian distance mapping |
| EightSEDSqr |
square of the eight point sequential euclidian distance mapping |
| FourSED |
four point sequential euclidian distance mapping |
| FourSEDSqr |
square of the four point sequential euclidian distance mapping |
| lti::distanceTransform::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::morphology::parameters.
| lti::distanceTransform::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
| other | the parameters object to be copied |
Reimplemented from lti::morphology::parameters.
| lti::distanceTransform::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::morphology::parameters.
| virtual functor::parameters* lti::distanceTransform::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::morphology::parameters.
| parameters& lti::distanceTransform::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
| other | the parameters object to be copied |
Reimplemented from lti::morphology::parameters.
| const char* lti::distanceTransform::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::morphology::parameters.
| parameters& lti::distanceTransform::parameters::operator= | ( | const parameters & | other | ) |
copy the contents of a parameters object
| other | the parameters object to be copied |
| virtual bool lti::distanceTransform::parameters::read | ( | ioHandler & | handler, | |
| const bool | complete = true | |||
| ) | [virtual] |
read the parameters from the given ioHandler
| handler | the ioHandler to be used | |
| complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::modifier::parameters.
| virtual bool lti::distanceTransform::parameters::write | ( | ioHandler & | handler, | |
| const bool | complete = true | |||
| ) | const [virtual] |
write the parameters in the given ioHandler
| handler | the ioHandler to be used | |
| complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::modifier::parameters.
Kind of distance transform to be computed.
See eDistanceType for more information.
Default value: Euclidean