Dummy strategy (just for testing purposes). More...
#include <ClassifierDummyStrategy.h>
Classes | |
class | Parameters |
Classifier Parameters. More... | |
Public Member Functions | |
ClassifierDummyStrategy () | |
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... | |
~ClassifierDummyStrategy () | |
Protected Attributes | |
bool | m_isInitialized |
True if this instance is initialized. More... | |
ClassifierDummyStrategy::Parameters | m_parameters |
Internal execution parameters. More... | |
Dummy strategy (just for testing purposes).
Definition at line 44 of file ClassifierDummyStrategy.h.
te::rp::ClassifierDummyStrategy::ClassifierDummyStrategy | ( | ) |
Definition at line 73 of file ClassifierDummyStrategy.cpp.
References m_isInitialized.
te::rp::ClassifierDummyStrategy::~ClassifierDummyStrategy | ( | ) |
Definition at line 78 of file ClassifierDummyStrategy.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 100 of file ClassifierDummyStrategy.cpp.
References te::gm::Envelope::getLowerLeft(), te::gm::Geometry::getMBR(), te::gm::Envelope::getUpperRight(), te::gm::Geometry::intersects(), m_isInitialized, TE_TR, TERP_TRUE_OR_RETURN_FALSE, te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
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 82 of file ClassifierDummyStrategy.cpp.
References te::rp::ClassifierDummyStrategy::Parameters::m_dummyParameter, m_isInitialized, m_parameters, TE_TR, and TERP_TRUE_OR_RETURN_FALSE.
|
protected |
True if this instance is initialized.
Definition at line 89 of file ClassifierDummyStrategy.h.
Referenced by ClassifierDummyStrategy(), execute(), and initialize().
|
protected |
Internal execution parameters.
Definition at line 90 of file ClassifierDummyStrategy.h.
Referenced by initialize().