te::rp::ClassifierEMStrategy Class Reference

EM strategy for pixel-based classification. This is an unsupervised and pixel-based classification algorithm. Expectation-Maximization (EM) works iteratively by applying two steps: the E-step (Expectation) and the M-step (Maximization). The method aims to approximate the parameter estimates to real data distribution, along the iterations: More...

#include <ClassifierEMStrategy.h>

Inheritance diagram for te::rp::ClassifierEMStrategy:
te::rp::ClassifierStrategy

Classes

class  Parameters
 Classifier Parameters. More...
 

Public Member Functions

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

Protected Attributes

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

Detailed Description

EM strategy for pixel-based classification. This is an unsupervised and pixel-based classification algorithm. Expectation-Maximization (EM) works iteratively by applying two steps: the E-step (Expectation) and the M-step (Maximization). The method aims to approximate the parameter estimates to real data distribution, along the iterations:

  1. The E-step calculates the conditional expectation of the complete a posteriori probability function.
  2. The M-step updates the parameter estimation.

Definition at line 58 of file ClassifierEMStrategy.h.

Constructor & Destructor Documentation

te::rp::ClassifierEMStrategy::ClassifierEMStrategy ( )
te::rp::ClassifierEMStrategy::~ClassifierEMStrategy ( )

Member Function Documentation

bool te::rp::ClassifierEMStrategy::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::ClassifierEMStrategy::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::ClassifierEMStrategy::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::ClassifierEMStrategy::m_isInitialized
protected

True if this instance is initialized.

Definition at line 110 of file ClassifierEMStrategy.h.

ClassifierEMStrategy::Parameters te::rp::ClassifierEMStrategy::m_parameters
protected

Internal execution parameters.

Definition at line 111 of file ClassifierEMStrategy.h.


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