LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::delaunayTriangulation< T >::parameters Class Reference

the parameters for the class delaunayTriangulation More...

#include <ltiDelaunayTriangulation.h>

Inheritance diagram for lti::delaunayTriangulation< T >::parameters:
Inheritance graph
[legend]
Collaboration diagram for lti::delaunayTriangulation< T >::parameters:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 parameters ()
 parameters (const parameters &other)
 ~parameters ()
const char * getTypeName () const
parameterscopy (const parameters &other)
parametersoperator= (const parameters &other)
virtual functor::parametersclone () const
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)

Public Attributes

float specialPointsFactor
float epsilon

Detailed Description

template<class T>
class lti::delaunayTriangulation< T >::parameters

the parameters for the class delaunayTriangulation


Constructor & Destructor Documentation

template<class T >
lti::delaunayTriangulation< T >::parameters::parameters ( void   )  [inline]
template<class T >
lti::delaunayTriangulation< T >::parameters::parameters ( const parameters other  )  [inline]

copy constructor

Parameters:
other the parameters object to be copied

References lti::delaunayTriangulation< T >::parameters::copy().

template<class T >
lti::delaunayTriangulation< T >::parameters::~parameters (  )  [inline, virtual]

destructor

Reimplemented from lti::functor::parameters.


Member Function Documentation

template<class T >
virtual functor::parameters* lti::delaunayTriangulation< T >::parameters::clone (  )  const [inline, virtual]

returns a pointer to a clone of the parameters

Implements lti::functor::parameters.

References lti::delaunayTriangulation< T >::parameters::parameters().

template<class T >
parameters& lti::delaunayTriangulation< T >::parameters::copy ( const parameters other  )  [inline]
template<class T >
const char* lti::delaunayTriangulation< T >::parameters::getTypeName ( void   )  const [inline, virtual]

returns name of this type

Reimplemented from lti::functor::parameters.

template<class T >
parameters& lti::delaunayTriangulation< T >::parameters::operator= ( const parameters other  )  [inline]

copy the contents of a parameters object

Parameters:
other the parameters object to be copied
Returns:
a reference to this parameters object

References lti::delaunayTriangulation< T >::parameters::copy().

template<class T >
virtual bool lti::delaunayTriangulation< T >::parameters::read ( ioHandler handler,
const bool  complete = true 
) [inline, virtual]

read the parameters from the given ioHandler

Parameters:
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.
Returns:
true if write was successful

Reimplemented from lti::functor::parameters.

References lti::delaunayTriangulation< T >::parameters::epsilon, lti::ioHandler::readBegin(), lti::ioHandler::readEnd(), and lti::delaunayTriangulation< T >::parameters::specialPointsFactor.

template<class T >
virtual bool lti::delaunayTriangulation< T >::parameters::write ( ioHandler handler,
const bool  complete = true 
) const [inline, virtual]

write the parameters in the given ioHandler

Parameters:
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.
Returns:
true if write was successful

Reimplemented from lti::functor::parameters.

References lti::delaunayTriangulation< T >::parameters::epsilon, lti::delaunayTriangulation< T >::parameters::specialPointsFactor, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().


Member Data Documentation

template<class T >
float lti::delaunayTriangulation< T >::parameters::epsilon

This value is used for determining when a point falls on an edge.

Thus the construction of the triangulation can be influenced quite strongly by this value.

Note that the values depends on the given data.

Default: 0.001. Works well for pixel position ranges

Referenced by lti::delaunayTriangulation< T >::parameters::copy(), lti::delaunayTriangulation< T >::parameters::parameters(), lti::delaunayTriangulation< T >::parameters::read(), and lti::delaunayTriangulation< T >::parameters::write().

The algorithm uses a virtual triangle consisting of three special points.

It must at least include all given points. However, the distance of these points from the actual points influences the bahaviour of the algorithm with respect to small dents in the convex hull.

A large value will give you the complete, correct Delaunay triangulation. A small value excludes triangles that share one edge with the convex hull and have a 'large' angle opposite that edge. This behavior can be useful in some applications where 'degenerate' triangles are not useful.

Default: 100. Gives the correct result for most applications

Referenced by lti::delaunayTriangulation< T >::parameters::copy(), lti::delaunayTriangulation< T >::parameters::parameters(), lti::delaunayTriangulation< T >::parameters::read(), and lti::delaunayTriangulation< T >::parameters::write().


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

Generated on Sat Apr 10 15:28:13 2010 for LTI-Lib by Doxygen 1.6.1