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... | |
std::vector< int > | getOutputDataTypes () const |
Returns the output raster pixel data type for each output band. More... | |
bool | initialize (ClassifierStrategyParameters 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 | ( | ) |
te::rp::ClassifierKMeansStrategy::~ClassifierKMeansStrategy | ( | ) |
|
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.
|
virtual |
Returns the output raster pixel data type for each output band.
Implements te::rp::ClassifierStrategy.
|
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.
|
protected |
True if this instance is initialized.
Definition at line 103 of file ClassifierKMeansStrategy.h.
|
protected |
Internal execution parameters.
Definition at line 104 of file ClassifierKMeansStrategy.h.