26#ifndef __TERRALIB_RP_INTERNAL_CLASSIFIEREMSTRATEGY_H
27#define __TERRALIB_RP_INTERNAL_CLASSIFIEREMSTRATEGY_H
38#include <boost/numeric/ublas/matrix.hpp>
Raster classifier strategy factory base class.
Raster classifier strategy base class.
AbstractParameters()
Constructor.
ClassifierEMStrategyFactory()
te::rp::ClassifierStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
~ClassifierEMStrategyFactory()
unsigned int m_useRandomSamples
If true, random samples will be used instead of regular spaced samples.
unsigned int m_numberOfClusters
The number of clusters (classes) to estimate in the image.
unsigned int m_maxIterations
The maximum of iterations (E/M steps) to perform if convergence is not achieved.
const Parameters & operator=(const Parameters ¶ms)
double m_epsilon
The stop criteria. When the clusters change in a value smaller then epsilon, the convergence is achie...
AbstractParameters * clone() const
Create a clone copy of this instance.
std::vector< std::vector< double > > m_clustersMeans
The previously estimated means of the clusters (optional).
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
bool serialize(AlgorithmParametersSerializer &serializer) const
Returns a parameter serialization object.
unsigned int m_maxInputPoints
The maximum number of points used to estimate the clusters (default = 1000).
bool execute()
Executes the classification strategy.
bool initialize(ClassifierStrategyParameters const *const strategyParams)
Initialize the classification strategy.
bool m_isInitialized
True if this instance is initialized.
ClassifierEMStrategy::Parameters m_parameters
Internal execution parameters.
ClassifierStrategyFactory(const std::string &factoryKey)
Classifier Strategy Parameters.
ClassifierStrategyParameters()
Raster classifier strategy base class.
ClassifierStrategy()
Default constructor.
Namespace for Raster Processing module of TerraLib.
Configuration flags for the Raster Processing module of TerraLib.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.