te::rp::ClassifierDummyStrategy Class Reference

Dummy strategy (just for testing purposes). More...

#include <ClassifierDummyStrategy.h>

Inheritance diagram for te::rp::ClassifierDummyStrategy:
te::rp::ClassifierStrategy

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...
 
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...
 
 ~ClassifierDummyStrategy ()
 

Protected Attributes

bool m_isInitialized
 True if this instance is initialized. More...
 
ClassifierDummyStrategy::Parameters m_parameters
 Internal execution parameters. More...
 

Detailed Description

Dummy strategy (just for testing purposes).

Definition at line 44 of file ClassifierDummyStrategy.h.

Constructor & Destructor Documentation

te::rp::ClassifierDummyStrategy::ClassifierDummyStrategy ( )
te::rp::ClassifierDummyStrategy::~ClassifierDummyStrategy ( )

Member Function Documentation

bool te::rp::ClassifierDummyStrategy::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
)
virtual

Executes the classification strategy.

Parameters
inputRasterInput raster.
inputRasterBandsInput raster bands.
inputPolygonsThe polygons to be classified when using object-based image analysis (OBIA).
outputRasterOutput raster.
outputRasterBandOutput raster band.
enableProgressInterfaceEnable the internal strategy to update the progress interface.
Returns
true if OK, false on errors.

Implements te::rp::ClassifierStrategy.

std::vector< int > te::rp::ClassifierDummyStrategy::getOutputDataTypes ( ) const
virtual

Returns the output raster pixel data type for each output band.

Returns
Returns the output raster pixel data type for each output band.

Implements te::rp::ClassifierStrategy.

bool te::rp::ClassifierDummyStrategy::initialize ( ClassifierStrategyParameters const *const  strategyParams)
throw (te::rp::Exception
)
virtual

Initialize the classification strategy.

Parameters
strategyParamsA pointer to the user given specific classification strategy parameters ou NULL if no parameters are present.
Returns
true if OK, false on errors.

Implements te::rp::ClassifierStrategy.

Member Data Documentation

bool te::rp::ClassifierDummyStrategy::m_isInitialized
protected

True if this instance is initialized.

Definition at line 92 of file ClassifierDummyStrategy.h.

ClassifierDummyStrategy::Parameters te::rp::ClassifierDummyStrategy::m_parameters
protected

Internal execution parameters.

Definition at line 93 of file ClassifierDummyStrategy.h.


The documentation for this class was generated from the following file: