te::rp::ClassifierSAMStrategy Class Reference

Spectral Angle Mapper classification strategy. More...

#include <ClassifierSAMStrategy.h>

Inheritance diagram for te::rp::ClassifierSAMStrategy:
te::rp::ClassifierStrategy

Classes

class  Parameters
 Classifier Parameters. More...
 

Public Types

typedef std::map< ClassIDT, SamplesTClassesSamplesT
 Classes samples container type definition. More...
 
typedef boost::shared_ptr< ClassesSamplesTClassesSamplesTPtr
 A shared pointer to a multi classes samples container type definition. More...
 
typedef unsigned int ClassIDT
 Class ID type definition (zero means invalid ID). More...
 
typedef std::vector< SampleTSamplesT
 Class samples container type definition. More...
 
typedef std::vector< double > SampleT
 Class sample type definition. More...
 

Public Member Functions

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

Protected Attributes

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

Detailed Description

Spectral Angle Mapper classification strategy.

This algorithm maps the spectral similarity of input raster to the given reference spectra wich can be either laboratory of field spectra. This method assumes that the data have been reduced to apparent reflectance with all dark current and path radiance biases removed. Reference: The spectral image processing system (SIPS)- interactive visualization and analysis of imaging spectrometer data. Kruse, F. A.; Lefkoff, A. B.; Boardman, J. W.; Heidebrecht, K. B.; Shapiro, A. T.; Barloon, P. J.; Goetz, A. F. H. The earth and space science information system (ESSIS). AIP Conference Proceedings, Volume 283, pp. 192-201 (1993).

Definition at line 55 of file ClassifierSAMStrategy.h.

Member Typedef Documentation

Classes samples container type definition.

Definition at line 65 of file ClassifierSAMStrategy.h.

A shared pointer to a multi classes samples container type definition.

Definition at line 67 of file ClassifierSAMStrategy.h.

Class ID type definition (zero means invalid ID).

Definition at line 59 of file ClassifierSAMStrategy.h.

Class samples container type definition.

Definition at line 63 of file ClassifierSAMStrategy.h.

typedef std::vector< double > te::rp::ClassifierSAMStrategy::SampleT

Class sample type definition.

Definition at line 61 of file ClassifierSAMStrategy.h.

Constructor & Destructor Documentation

te::rp::ClassifierSAMStrategy::ClassifierSAMStrategy ( )
te::rp::ClassifierSAMStrategy::~ClassifierSAMStrategy ( )

Member Function Documentation

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

std::vector< ClassIDT > te::rp::ClassifierSAMStrategy::m_classesIndex2ID
protected

An class index ordered vector of classes IDs;.

Definition at line 119 of file ClassifierSAMStrategy.h.

SamplesT te::rp::ClassifierSAMStrategy::m_classesMeans
protected

Classes means.

Definition at line 117 of file ClassifierSAMStrategy.h.

ClassifierSAMStrategy::Parameters te::rp::ClassifierSAMStrategy::m_initParams
protected

Initialization parameters.

Definition at line 115 of file ClassifierSAMStrategy.h.

bool te::rp::ClassifierSAMStrategy::m_isInitialized
protected

Is this instance initialized?

Definition at line 113 of file ClassifierSAMStrategy.h.


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