te::rp::MixtureModelStrategy Class Referenceabstract

Raster mixture model strategy base class. More...

#include <MixtureModelStrategy.h>

Inheritance diagram for te::rp::MixtureModelStrategy:
te::rp::MixtureModelLinearStrategy te::rp::MixtureModelPCAStrategy

Public Member Functions

virtual bool execute (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const std::vector< std::string > &inputSensorBands, const std::map< std::string, std::vector< double > > &components, std::vector< te::rst::Raster * > &outputRaster, const bool normalize, const bool enableProgressInterface)=0 throw (te::rp::Exception)
 Executes the segmentation strategy. More...
 
virtual bool generateTransformMatrix (const std::vector< unsigned int > &inputRasterBands, const std::vector< std::string > &inputSensorBands, const std::map< std::string, std::vector< double > > &components)=0
 Generates the used transformation matrix (when applicable). More...
 
virtual bool getMinMax (std::vector< double > &, std::vector< double > &) const =0
 
virtual bool getMinMaxError (std::vector< double > &, std::vector< double > &) const =0
 
virtual bool getTransformMatrix (boost::numeric::ublas::matrix< double > &matrix) const =0
 Returns the used transformation matrix (when applicable). More...
 
virtual bool initialize (StrategyParameters const *const strategyParams)=0 throw (te::rp::Exception)
 Initialize the segmentation strategy. More...
 
virtual bool setTransformMatrix (boost::numeric::ublas::matrix< double > &matrix)=0
 Sets the used transformation matrix. More...
 
virtual ~MixtureModelStrategy ()
 Virtual destructor. More...
 

Protected Member Functions

 MixtureModelStrategy ()
 Default constructor. More...
 

Private Member Functions

 MixtureModelStrategy (const MixtureModelStrategy &rhs)
 Copy constructor. More...
 
const MixtureModelStrategyoperator= (const MixtureModelStrategy &rhs)
 Assignment operator. More...
 

Detailed Description

Raster mixture model strategy base class.

Definition at line 49 of file MixtureModelStrategy.h.

Constructor & Destructor Documentation

virtual te::rp::MixtureModelStrategy::~MixtureModelStrategy ( )
virtual

Virtual destructor.

te::rp::MixtureModelStrategy::MixtureModelStrategy ( )
protected

Default constructor.

te::rp::MixtureModelStrategy::MixtureModelStrategy ( const MixtureModelStrategy rhs)
private

Copy constructor.

Parameters
rhsThe right-hand side Raster.

Member Function Documentation

virtual bool te::rp::MixtureModelStrategy::execute ( const te::rst::Raster inputRaster,
const std::vector< unsigned int > &  inputRasterBands,
const std::vector< std::string > &  inputSensorBands,
const std::map< std::string, std::vector< double > > &  components,
std::vector< te::rst::Raster * > &  outputRaster,
const bool  normalize,
const bool  enableProgressInterface 
)
throw (te::rp::Exception
)
pure virtual

Executes the segmentation strategy.

Parameters
inputRasterInput raster.
inputRasterBandsInput raster bands.
componentsThe set of endmembers and its radiances.
outputRasterOutput raster vector, contains output raster and error raster if requested.
enableProgressInterfaceEnable the internal strategy to update the progress interface.
Returns
true if OK, false on errors.

Implemented in te::rp::MixtureModelLinearStrategy, and te::rp::MixtureModelPCAStrategy.

virtual bool te::rp::MixtureModelStrategy::generateTransformMatrix ( const std::vector< unsigned int > &  inputRasterBands,
const std::vector< std::string > &  inputSensorBands,
const std::map< std::string, std::vector< double > > &  components 
)
pure virtual

Generates the used transformation matrix (when applicable).

Parameters
inputRasterBandsInput raster bands.
inputSensorBandsInput names of the sensor/bands.
componentsA set of endmembers and its radiances.
Returns
true if OK, false on errors or not applicable cases.

Implemented in te::rp::MixtureModelLinearStrategy, and te::rp::MixtureModelPCAStrategy.

virtual bool te::rp::MixtureModelStrategy::getMinMax ( std::vector< double > &  ,
std::vector< double > &   
) const
pure virtual
virtual bool te::rp::MixtureModelStrategy::getMinMaxError ( std::vector< double > &  ,
std::vector< double > &   
) const
pure virtual
virtual bool te::rp::MixtureModelStrategy::getTransformMatrix ( boost::numeric::ublas::matrix< double > &  matrix) const
pure virtual

Returns the used transformation matrix (when applicable).

Parameters
matrixThe transformation matrix.
Returns
true if OK, false on errors or not applicable cases.

Implemented in te::rp::MixtureModelLinearStrategy, and te::rp::MixtureModelPCAStrategy.

virtual bool te::rp::MixtureModelStrategy::initialize ( StrategyParameters const *const  strategyParams)
throw (te::rp::Exception
)
pure virtual

Initialize the segmentation strategy.

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

Implemented in te::rp::MixtureModelLinearStrategy, and te::rp::MixtureModelPCAStrategy.

const MixtureModelStrategy& te::rp::MixtureModelStrategy::operator= ( const MixtureModelStrategy rhs)
private

Assignment operator.

Parameters
rhsThe right-hand-side copy that would be used to copy from.
Returns
A reference to this object.
virtual bool te::rp::MixtureModelStrategy::setTransformMatrix ( boost::numeric::ublas::matrix< double > &  matrix)
pure virtual

Sets the used transformation matrix.

Parameters
matrixThe transformation matrix.
Returns
true if OK, false on errors or not applicable cases.

Implemented in te::rp::MixtureModelLinearStrategy, and te::rp::MixtureModelPCAStrategy.


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