26 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERKMEANSSTRATEGY_H
27 #define __TERRALIB_RP_INTERNAL_CLASSIFIERKMEANSSTRATEGY_H
37 class AlgorithmParametersSerializer;
83 AbstractParameters*
clone()
const;
Raster classifier strategy factory base class.
Raster classifier strategy base class.
Raster KMeans Classifier strategy factory.
ClassifierKMeansStrategyFactory()
te::rp::ClassifierStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
~ClassifierKMeansStrategyFactory()
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
const Parameters & operator=(const Parameters ¶ms)
AbstractParameters * clone() const
Create a clone copy of this instance.
double m_epsilon
The stop criteria. When the clusters change in a value smaller then epsilon, the convergence is achie...
unsigned int m_maxIterations
The maximum of iterations to perform if convergence is not achieved.
bool serialize(AlgorithmParametersSerializer &serializer) const
Returns a parameter serialization object.
unsigned int m_K
The number of clusters (means) to detect in image.
unsigned int m_maxInputPoints
The maximum number of points used to estimate the clusters (default = 1000).
KMeans strategy for image classification. Step-by-step:
bool m_isInitialized
True if this instance is initialized.
bool execute()
Executes the classification strategy.
ClassifierKMeansStrategy()
~ClassifierKMeansStrategy()
bool initialize(ClassifierStrategyParameters const *const strategyParams)
Initialize the classification strategy.
ClassifierKMeansStrategy::Parameters m_parameters
Internal execution parameters.
Raster classifier strategy factory base class.
Classifier Strategy Parameters.
Raster classifier strategy base class.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).