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


Public Types | |
| enum | eSmoothFilterType { Nothing = 0, Median = 1, KNearest = 2 } |
Public Member Functions | |
| parameters () | |
| parameters (const int numCols) | |
| 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 | |
| kMColorQuantization::parameters | quantParameters |
| eSmoothFilterType | smoothFilter |
| int | kernelSize |
the parameters for the class kMeansSegmentation
Smooth filter type.
| Nothing |
Do not smooth the color quantized image. |
| Median |
Use Median Filter (lti::medianFilter). |
| KNearest |
Use K-Nearest Neighbor filter (lti::kNearestNeighFilter). |
| lti::kMeansSegmentation::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::segmentation::parameters.
| lti::kMeansSegmentation::parameters::parameters | ( | const int | numCols | ) |
construct a parameters object with the given number of quantization colors.
| numCols | number of colors |
| lti::kMeansSegmentation::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
| other | the parameters object to be copied |
Reimplemented from lti::segmentation::parameters.
| lti::kMeansSegmentation::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::segmentation::parameters.
| virtual functor::parameters* lti::kMeansSegmentation::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::segmentation::parameters.
| parameters& lti::kMeansSegmentation::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
| other | the parameters object to be copied |
Reimplemented from lti::segmentation::parameters.
| const char* lti::kMeansSegmentation::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::segmentation::parameters.
| parameters& lti::kMeansSegmentation::parameters::operator= | ( | const parameters & | other | ) |
copy the contents of a parameters object
| other | the parameters object to be copied |
| virtual bool lti::kMeansSegmentation::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::segmentation::parameters.
| virtual bool lti::kMeansSegmentation::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::segmentation::parameters.
kerner size of the smoothing-filter
Default: 5
number of colors for the image quantization and other quantization parameters
Default: numberOfColors: 16 thresholdDeltaPalette: 1
kind of smoothing-filter.
Use the constants defined in the parameters to specify the filter type: Nothing, Median or KNearest
Default: KNearest