latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class boundingBox More...
#include <ltiBoundingBox.h>
Public Member Functions | |
parameters () | |
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) |
Public Attributes | |
int | borderSize |
bool | centerOfGravity |
T | backgroundColor |
bool | justSuppressBackground |
bool | optimalBox |
bool | useLengths |
the parameters for the class boundingBox
lti::boundingBox< T >::parameters::parameters | ( | void | ) | [inline] |
default constructor
Reimplemented from lti::segmentation::parameters.
References lti::boundingBox< T >::parameters::backgroundColor, lti::boundingBox< T >::parameters::borderSize, lti::boundingBox< T >::parameters::centerOfGravity, lti::boundingBox< T >::parameters::justSuppressBackground, lti::boundingBox< T >::parameters::optimalBox, and lti::boundingBox< T >::parameters::useLengths.
Referenced by lti::boundingBox< T >::parameters::clone().
lti::boundingBox< T >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::segmentation::parameters.
References lti::boundingBox< T >::parameters::copy().
lti::boundingBox< T >::parameters::~parameters | ( | ) | [inline, virtual] |
destructor
Reimplemented from lti::segmentation::parameters.
virtual functor::parameters* lti::boundingBox< T >::parameters::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::segmentation::parameters.
References lti::boundingBox< T >::parameters::parameters().
parameters& lti::boundingBox< T >::parameters::copy | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::segmentation::parameters.
References lti::boundingBox< T >::parameters::backgroundColor, lti::boundingBox< T >::parameters::borderSize, lti::boundingBox< T >::parameters::centerOfGravity, lti::segmentation::parameters::copy(), lti::boundingBox< T >::parameters::justSuppressBackground, lti::boundingBox< T >::parameters::optimalBox, and lti::boundingBox< T >::parameters::useLengths.
Referenced by lti::boundingBox< T >::parameters::parameters().
const char* lti::boundingBox< T >::parameters::getTypeName | ( | void | ) | const [inline, virtual] |
returns name of this type
Reimplemented from lti::segmentation::parameters.
virtual bool lti::boundingBox< 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::segmentation::parameters.
References lti::boundingBox< T >::parameters::backgroundColor, lti::boundingBox< T >::parameters::borderSize, lti::boundingBox< T >::parameters::centerOfGravity, lti::boundingBox< T >::parameters::justSuppressBackground, lti::boundingBox< T >::parameters::optimalBox, lti::ioHandler::readBegin(), lti::ioHandler::readEnd(), and lti::boundingBox< T >::parameters::useLengths.
virtual bool lti::boundingBox< 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::segmentation::parameters.
References lti::boundingBox< T >::parameters::backgroundColor, lti::boundingBox< T >::parameters::borderSize, lti::boundingBox< T >::parameters::centerOfGravity, lti::boundingBox< T >::parameters::justSuppressBackground, lti::boundingBox< T >::parameters::optimalBox, lti::boundingBox< T >::parameters::useLengths, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().
T lti::boundingBox< T >::parameters::backgroundColor |
Background color.
Default value: T(0) (i.e. Black for images or 0 for channels)
Referenced by lti::boundingBox< T >::parameters::copy(), lti::boundingBox< T >::parameters::parameters(), lti::boundingBox< T >::parameters::read(), and lti::boundingBox< T >::parameters::write().
int lti::boundingBox< T >::parameters::borderSize |
The extracted image will have at each side a border of (at least) the specified number of pixels.
If "centerOfGravity" is false, the border will have exactly "borderSize" pixels.
Default value: 1
Referenced by lti::boundingBox< T >::parameters::copy(), lti::boundingBox< T >::parameters::parameters(), lti::boundingBox< T >::parameters::read(), and lti::boundingBox< T >::parameters::write().
bool lti::boundingBox< T >::parameters::centerOfGravity |
If "true", the center of gravity of the object will be forced to be at the center of the new image.
If false, only the borders of the object will be considered in the calculations.
Default value: false;
Referenced by lti::boundingBox< T >::parameters::copy(), lti::boundingBox< T >::parameters::parameters(), lti::boundingBox< T >::parameters::read(), and lti::boundingBox< T >::parameters::write().
bool lti::boundingBox< T >::parameters::justSuppressBackground |
Suppress background only.
If true, the borderSize and centerOfGravity parameters will be ignored, and the resulting image will have exactly the same dimensions than the input image. If false, the size of the resulting image will be determined by the other parameters.
Default value: false.
Referenced by lti::boundingBox< T >::parameters::copy(), lti::boundingBox< T >::parameters::parameters(), lti::boundingBox< T >::parameters::read(), and lti::boundingBox< T >::parameters::write().
bool lti::boundingBox< T >::parameters::optimalBox |
If false, just the principal components of the convex hull will be used to determine the rectLocation's angle.
If true, an optimal angle will be determined, that minimizes the area of the rectLocation.
This attribute takes effect only in the apply methods related to the computation of the rectLocation instances.
Default value: false
Referenced by lti::boundingBox< T >::parameters::copy(), lti::boundingBox< T >::parameters::parameters(), lti::boundingBox< T >::parameters::read(), and lti::boundingBox< T >::parameters::write().
bool lti::boundingBox< T >::parameters::useLengths |
If true, the bounding box length is used for determining which axis represents is the main axis.
If false, this is determined by a PCA of the contour points.
Default value: false
Referenced by lti::boundingBox< T >::parameters::copy(), lti::boundingBox< T >::parameters::parameters(), lti::boundingBox< T >::parameters::read(), and lti::boundingBox< T >::parameters::write().