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

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

the parameters for the class maximumFilter More...

#include <ltiMaximumFilter.h>

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

List of all members.

Public Member Functions

 parameters (const int k=3)
 parameters (const parameters &other)
 ~parameters ()
const char * getTypeName () const
parameterscopy (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)
void initSquare (const int size)

Public Attributes

rectangle kernelSize

Detailed Description

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

the parameters for the class maximumFilter


Constructor & Destructor Documentation

template<class T>
lti::maximumFilter< T >::parameters::parameters ( const int  k = 3  )  [inline]

default constructor to initialize a kernel of k x k size centered at (0,0)

References lti::maximumFilter< T >::parameters::initSquare().

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

copy constructor

Parameters:
other the parameters object to be copied

Reimplemented from lti::modifier::parameters.

Reimplemented in lti::localMaxima< T >::parameters.

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

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

destructor

Reimplemented from lti::functor::parameters.

Reimplemented in lti::localMaxima< T >::parameters.


Member Function Documentation

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

returns a pointer to a clone of the parameters

Reimplemented from lti::modifier::parameters.

Reimplemented in lti::localMaxima< T >::parameters.

References lti::modifier::parameters::parameters().

template<class T>
parameters& lti::maximumFilter< T >::parameters::copy ( 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

Reimplemented from lti::filter::parameters.

Reimplemented in lti::localMaxima< T >::parameters.

References lti::filter::parameters::copy(), and lti::maximumFilter< T >::parameters::kernelSize.

Referenced by lti::maximumFilter< T >::parameters::parameters().

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

returns name of this type

Reimplemented from lti::modifier::parameters.

Reimplemented in lti::localMaxima< T >::parameters.

template<class T>
void lti::maximumFilter< T >::parameters::initSquare ( const int  size  )  [inline]

Initialize the parameters for a symmetric square kernel sizeXsize.

If the size is even, it will be "fixed" to the next odd number

References lti::trectangle< T, S >::br, lti::maximumFilter< T >::parameters::kernelSize, lti::trectangle< T, S >::ul, lti::tpoint< T >::x, and lti::tpoint< T >::y.

Referenced by lti::maximumFilter< T >::parameters::parameters().

template<class T>
virtual bool lti::maximumFilter< 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 read, otherwise only the data block will be read.
Returns:
true if write was successful

Reimplemented from lti::modifier::parameters.

Reimplemented in lti::localMaxima< T >::parameters.

References lti::maximumFilter< T >::parameters::kernelSize, lti::ioHandler::readBegin(), and lti::ioHandler::readEnd().

template<class T>
virtual bool lti::maximumFilter< 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::modifier::parameters.

Reimplemented in lti::localMaxima< T >::parameters.

References lti::maximumFilter< T >::parameters::kernelSize, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().


Member Data Documentation

The rectangular kernel defines the region around the actual pixel in which the maximum value will be determined.

Default value: rectangle(-1,-1,1,1), i.e. a 3x3 kernel

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


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

Generated on Sat Apr 10 15:27:34 2010 for LTI-Lib by Doxygen 1.6.1