latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class maximumFilter More...
#include <ltiMaximumFilter.h>
Public Member Functions | |
parameters (const int k=3) | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (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) |
void | initSquare (const int size) |
Public Attributes | |
rectangle | kernelSize |
the parameters for the class maximumFilter
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().
lti::maximumFilter< T >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::modifier::parameters.
Reimplemented in lti::localMaxima< T >::parameters.
References lti::maximumFilter< T >::parameters::copy().
lti::maximumFilter< T >::parameters::~parameters | ( | ) | [inline, virtual] |
destructor
Reimplemented from lti::functor::parameters.
Reimplemented in lti::localMaxima< T >::parameters.
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().
parameters& lti::maximumFilter< T >::parameters::copy | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
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().
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.
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().
virtual bool lti::maximumFilter< T >::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, 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 read, otherwise only the data block will be read. |
Reimplemented from lti::modifier::parameters.
Reimplemented in lti::localMaxima< T >::parameters.
References lti::maximumFilter< T >::parameters::kernelSize, lti::ioHandler::readBegin(), and lti::ioHandler::readEnd().
virtual bool lti::maximumFilter< T >::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, 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.
Reimplemented in lti::localMaxima< T >::parameters.
References lti::maximumFilter< T >::parameters::kernelSize, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().
rectangle lti::maximumFilter< T >::parameters::kernelSize |
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().