25#ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERSAMSTRATEGY_H
26#define __TERRALIB_RP_INTERNAL_CLASSIFIERSAMSTRATEGY_H
32#include <boost/shared_ptr.hpp>
Raster classifier strategy factory base class.
Raster classifier strategy base class.
AbstractParameters()
Constructor.
te::rp::ClassifierStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
ClassifierSAMStrategyFactory()
~ClassifierSAMStrategyFactory()
AbstractParameters * clone() const
Create a clone copy of this instance.
ClassesSamplesTPtr m_trainSamplesPtr
A shared pointer to a always-valid structure where trainning samples are stored.
bool serialize(AlgorithmParametersSerializer &serializer) const
Returns a parameter serialization object.
std::vector< double > m_maxAngularDistances
This is a vector of maximum acceptable angles (radians) between one pixel spectra and the reference s...
const Parameters & operator=(const Parameters ¶ms)
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
ClassIDT m_highestTrainClassID
unsigned int ClassIDT
Class ID type definition (zero means invalid ID).
ClassifierSAMStrategy::Parameters m_initParams
Initialization parameters.
boost::shared_ptr< ClassesSamplesT > ClassesSamplesTPtr
A shared pointer to a multi classes samples container type definition.
std::vector< ClassIDT > m_classesIndex2ID
An class index ordered vector of classes IDs;.
std::vector< SampleT > SamplesT
Class samples container type definition.
std::map< ClassIDT, SamplesT > ClassesSamplesT
Classes samples container type definition.
std::vector< double > SampleT
Class sample type definition.
bool m_isInitialized
Is this instance initialized?
bool execute()
Executes the classification strategy.
SamplesT m_classesMeans
Classes means.
bool initialize(ClassifierStrategyParameters const *const strategyParams)
Initialize the classification strategy.
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.