te::rp::ClassifierISOSegStrategy Class Reference

ISOSeg strategy for OBIA classification. The algorithm orders regions by area (larger first), and classify the largest region as Cluster 1. All regions similar to this cluster are inserted in Cluster 1, otherwise new Clusters are created. After all regions belong to a cluster, the algorithm merges similar clusters. The acceptance threshold is the only parameter given by the user, and it indicates the maximum distance between two regions to be clustered togheter. More...

#include <ClassifierISOSegStrategy.h>

Inheritance diagram for te::rp::ClassifierISOSegStrategy:
te::rp::ClassifierStrategy

Classes

class  Parameters
 Classifier Parameters. More...
 
class  Pattern
 Describes a region or a cluster (group of regions with similar properties) to be used by ISOSeg method. More...
 

Public Member Functions

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

Protected Attributes

bool m_isInitialized
 True if this instance is initialized. More...
 
ClassifierISOSegStrategy::Parameters m_parameters
 Internal execution parameters. More...
 
std::multimap< double, Pattern *, std::greater< double > > m_regions
 A descriptive set of regions (area, features). More...
 

Detailed Description

ISOSeg strategy for OBIA classification. The algorithm orders regions by area (larger first), and classify the largest region as Cluster 1. All regions similar to this cluster are inserted in Cluster 1, otherwise new Clusters are created. After all regions belong to a cluster, the algorithm merges similar clusters. The acceptance threshold is the only parameter given by the user, and it indicates the maximum distance between two regions to be clustered togheter.

Definition at line 54 of file ClassifierISOSegStrategy.h.

Constructor & Destructor Documentation

te::rp::ClassifierISOSegStrategy::ClassifierISOSegStrategy ( )
te::rp::ClassifierISOSegStrategy::~ClassifierISOSegStrategy ( )

Member Function Documentation

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

True if this instance is initialized.

Definition at line 175 of file ClassifierISOSegStrategy.h.

ClassifierISOSegStrategy::Parameters te::rp::ClassifierISOSegStrategy::m_parameters
protected

Internal execution parameters.

Definition at line 176 of file ClassifierISOSegStrategy.h.

std::multimap<double, Pattern*, std::greater<double> > te::rp::ClassifierISOSegStrategy::m_regions
protected

A descriptive set of regions (area, features).

Definition at line 177 of file ClassifierISOSegStrategy.h.


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