26 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIEREMSTRATEGY_H
27 #define __TERRALIB_RP_INTERNAL_CLASSIFIEREMSTRATEGY_H
38 #include <boost/numeric/ublas/matrix.hpp>
44 class AlgorithmParametersSerializer;
91 AbstractParameters*
clone()
const;
Raster classifier strategy factory base class.
Raster classifier strategy base class.
Raster EM Classifier strategy factory.
ClassifierEMStrategyFactory()
te::rp::ClassifierStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
~ClassifierEMStrategyFactory()
AbstractParameters * clone() const
Create a clone copy of this instance.
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.
double m_epsilon
The stop criteria. When the clusters change in a value smaller then epsilon, the convergence is achie...
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.
const Parameters & operator=(const Parameters ¶ms)
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).
EM strategy for pixel-based classification. This is an unsupervised and pixel-based classification al...
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.
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).