te::rp::ClassifierEDStrategy Class Reference

Euclidean Distance Classifier strategy. More...

#include <ClassifierEDStrategy.h>

Inheritance diagram for te::rp::ClassifierEDStrategy:


class  Parameters
 Classifier Parameters. More...

Public Member Functions

 ClassifierEDStrategy ()
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...
unsigned int getOutputNumberBands (void)
bool initialize (ClassifierStrategyParameters const *const strategyParams) throw (te::rp::Exception)
 Initialize the classification strategy. More...
 ~ClassifierEDStrategy ()

Protected Attributes

std::vector< Parameters::ClassIDTm_classesIndex2ID
 An class index ordered vector of classes IDs;. More...
std::vector< std::vector< double > > m_classesMeans
 Classes means;. More...
ClassifierEDStrategy::Parameters m_initParams
 Initialization parameters. More...
bool m_isInitialized
 Is this instance initialized? More...

Detailed Description

Euclidean Distance Classifier strategy.

Definition at line 50 of file ClassifierEDStrategy.h.

Constructor & Destructor Documentation

te::rp::ClassifierEDStrategy::ClassifierEDStrategy ( )
te::rp::ClassifierEDStrategy::~ClassifierEDStrategy ( )

Member Function Documentation

bool te::rp::ClassifierEDStrategy::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.

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.
true if OK, false on errors.

Implements te::rp::ClassifierStrategy.

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

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

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

Implements te::rp::ClassifierStrategy.

unsigned int te::rp::ClassifierEDStrategy::getOutputNumberBands ( void  )
bool te::rp::ClassifierEDStrategy::initialize ( ClassifierStrategyParameters const *const  strategyParams)
throw (te::rp::Exception

Initialize the classification strategy.

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

Implements te::rp::ClassifierStrategy.

Member Data Documentation

std::vector< Parameters::ClassIDT > te::rp::ClassifierEDStrategy::m_classesIndex2ID

An class index ordered vector of classes IDs;.

Definition at line 112 of file ClassifierEDStrategy.h.

std::vector< std::vector< double > > te::rp::ClassifierEDStrategy::m_classesMeans

Classes means;.

Definition at line 114 of file ClassifierEDStrategy.h.

ClassifierEDStrategy::Parameters te::rp::ClassifierEDStrategy::m_initParams

Initialization parameters.

Definition at line 110 of file ClassifierEDStrategy.h.

bool te::rp::ClassifierEDStrategy::m_isInitialized

Is this instance initialized?

Definition at line 108 of file ClassifierEDStrategy.h.

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