KMeans strategy for image classification. Step-by-step: More...
#include <ClassifierKMeansStrategy.h>
 
  
 | Classes | |
| class | Parameters | 
| Classifier Parameters.  More... | |
| Public Member Functions | |
| ClassifierKMeansStrategy () | |
| bool | execute (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const std::vector< te::gm::Polygon * > &inputPolygons, te::rst::Raster &outputRaster, const unsigned int outputRasterBand, const bool enableProgressInterface) throw (te::rp::Exception) | 
| Executes the classification strategy.  More... | |
| bool | initialize (StrategyParameters const *const strategyParams) throw (te::rp::Exception) | 
| Initialize the classification strategy.  More... | |
| ~ClassifierKMeansStrategy () | |
| Protected Attributes | |
| bool | m_isInitialized | 
| True if this instance is initialized.  More... | |
| ClassifierKMeansStrategy::Parameters | m_parameters | 
| Internal execution parameters.  More... | |
KMeans strategy for image classification. Step-by-step:
Definition at line 52 of file ClassifierKMeansStrategy.h.
| te::rp::ClassifierKMeansStrategy::ClassifierKMeansStrategy | ( | ) | 
Definition at line 81 of file ClassifierKMeansStrategy.cpp.
References m_isInitialized.
| te::rp::ClassifierKMeansStrategy::~ClassifierKMeansStrategy | ( | ) | 
Definition at line 86 of file ClassifierKMeansStrategy.cpp.
| 
 | virtual | ||||||||||||||||||||||||||||||||||||
Executes the classification strategy.
| inputRaster | Input raster. | 
| inputRasterBands | Input raster bands. | 
| inputPolygons | The polygons to be classified when using object-based image analysis (OBIA). | 
| outputRaster | Output raster. | 
| outputRasterBand | Output raster band. | 
| enableProgressInterface | Enable the internal strategy to update the progress interface. | 
Implements te::rp::ClassifierStrategy.
Definition at line 113 of file ClassifierKMeansStrategy.cpp.
References te::rst::RasterIterator< T >::begin(), te::rst::PointSetIterator< T >::begin(), te::cl::KMeans< TTRAIN, TCLASSIFY >::classify(), te::rst::RasterIterator< T >::end(), te::rst::PointSetIterator< T >::end(), te::rst::RasterIterator< T >::getColumn(), te::rst::GetRandomPointsInRaster(), te::rst::RasterIterator< T >::getRow(), te::cl::KMeans< TTRAIN, TCLASSIFY >::initialize(), te::rp::ClassifierKMeansStrategy::Parameters::m_epsilon, m_isInitialized, te::rp::ClassifierKMeansStrategy::Parameters::m_K, te::rp::ClassifierKMeansStrategy::Parameters::m_maxInputPoints, te::rp::ClassifierKMeansStrategy::Parameters::m_maxIterations, m_parameters, te::common::TaskProgress::pulse(), te::common::TaskProgress::setCurrentStep(), te::common::TaskProgress::setMessage(), te::common::TaskProgress::setTotalSteps(), TE_TR, TERP_TRUE_OR_RETURN_FALSE, and te::cl::KMeans< TTRAIN, TCLASSIFY >::train().
| 
 | virtual | ||||||||||||||
Initialize the classification strategy.
| strategyParams | A pointer to the user given specific classification strategy parameters ou NULL if no parameters are present. | 
Implements te::rp::ClassifierStrategy.
Definition at line 90 of file ClassifierKMeansStrategy.cpp.
References te::rp::ClassifierKMeansStrategy::Parameters::m_epsilon, m_isInitialized, te::rp::ClassifierKMeansStrategy::Parameters::m_K, te::rp::ClassifierKMeansStrategy::Parameters::m_maxInputPoints, te::rp::ClassifierKMeansStrategy::Parameters::m_maxIterations, m_parameters, TE_TR, and TERP_TRUE_OR_RETURN_FALSE.
| 
 | protected | 
True if this instance is initialized.
Definition at line 100 of file ClassifierKMeansStrategy.h.
Referenced by ClassifierKMeansStrategy(), execute(), and initialize().
| 
 | protected | 
Internal execution parameters.
Definition at line 101 of file ClassifierKMeansStrategy.h.
Referenced by execute(), and initialize().