25 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERSAMSTRATEGY_H
26 #define __TERRALIB_RP_INTERNAL_CLASSIFIERSAMSTRATEGY_H
32 #include <boost/shared_ptr.hpp>
38 class AlgorithmParametersSerializer;
95 AbstractParameters*
clone()
const;
Raster classifier strategy factory base class.
Raster classifier strategy base class.
Spectral Angle Mapper strategy factory.
ClassifierSAMStrategyFactory()
~ClassifierSAMStrategyFactory()
te::rp::ClassifierStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
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.
Spectral Angle Mapper classification strategy.
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.
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).