Raster classifier strategy base class. More...
#include <ClassifierStrategy.h>
Public Member Functions | |
virtual 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)=0 throw (te::rp::Exception) |
Executes the classification strategy. More... | |
virtual std::vector< int > | getOutputDataTypes () const =0 |
Returns the output raster pixel data type for each output band. More... | |
virtual bool | initialize (ClassifierStrategyParameters const *const strategyParams)=0 throw (te::rp::Exception) |
Initialize the classification strategy. More... | |
virtual | ~ClassifierStrategy () |
Virtual destructor. More... | |
Protected Member Functions | |
ClassifierStrategy () | |
Default constructor. More... | |
Private Member Functions | |
ClassifierStrategy (const ClassifierStrategy &rhs) | |
Copy constructor. More... | |
const ClassifierStrategy & | operator= (const ClassifierStrategy &rhs) |
Assignment operator. More... | |
Raster classifier strategy base class.
Definition at line 46 of file ClassifierStrategy.h.
|
virtual |
Virtual destructor.
|
protected |
Default constructor.
|
private |
Copy constructor.
rhs | The right-hand side Raster. |
|
pure 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. |
Implemented in te::rp::ClassifierISOSegStrategy, te::rp::ClassifierSAMStrategy, te::rp::ClassifierEMStrategy, te::rp::ClassifierMAPStrategy, te::rp::ClassifierKMeansStrategy, and te::rp::ClassifierDummyStrategy.
|
pure virtual |
Returns the output raster pixel data type for each output band.
Implemented in te::rp::ClassifierISOSegStrategy, te::rp::ClassifierSAMStrategy, te::rp::ClassifierEMStrategy, te::rp::ClassifierMAPStrategy, te::rp::ClassifierKMeansStrategy, and te::rp::ClassifierDummyStrategy.
|
pure virtual |
Initialize the classification strategy.
strategyParams | A pointer to the user given specific classification strategy parameters ou NULL if no parameters are present. |
Implemented in te::rp::ClassifierISOSegStrategy, te::rp::ClassifierSAMStrategy, te::rp::ClassifierEMStrategy, te::rp::ClassifierMAPStrategy, te::rp::ClassifierKMeansStrategy, and te::rp::ClassifierDummyStrategy.
|
private |
Assignment operator.
rhs | The right-hand-side copy that would be used to copy from. |