26#ifndef __TERRALIB_RP_INTERNAL_MIXTUREMODELSTRATEGY_H
27#define __TERRALIB_RP_INTERNAL_MIXTUREMODELSTRATEGY_H
39#include <boost/numeric/ublas/matrix.hpp>
75 const std::vector<std::string>& inputSensorBands,
const std::map<std::string, std::vector<double> >& components,
76 std::vector<te::rst::Raster*>& outputRaster,
const bool normalize,
const bool enableProgressInterface) = 0;
99 virtual bool generateTransformMatrix(
const std::vector<unsigned int>& inputRasterBands,
const std::vector<std::string>& inputSensorBands,
100 const std::map<std::string, std::vector<double> >& components) = 0;
102 virtual bool getMinMax(std::vector<double>&, std::vector<double>&)
const = 0;
103 virtual bool getMinMaxError(std::vector<double>&, std::vector<double>&)
const = 0;
Raster strategy parameters base class.
std::string m_errorMessage
Current error message.
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).
const std::string & getErrorMessage() const
Return the current error message if there is any.
virtual ~MixtureModelStrategy()
Virtual destructor.
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
Executes the segmentation strategy.
MixtureModelStrategy & operator=(const MixtureModelStrategy &rhs)
Assignment operator.
virtual bool getTransformMatrix(boost::numeric::ublas::matrix< double > &matrix) const =0
Returns the used transformation matrix (when applicable).
virtual void reset()
Reset to an initial state.
virtual bool setTransformMatrix(boost::numeric::ublas::matrix< double > &matrix)=0
Sets the used transformation matrix.
void setErrorMessage(const std::string &newErrorMessage)
Set the current error message.
virtual bool initialize(StrategyParameters const *const strategyParams)=0
Initialize the segmentation strategy.
virtual bool getMinMax(std::vector< double > &, std::vector< double > &) const =0
virtual bool getMinMaxError(std::vector< double > &, std::vector< double > &) const =0
MixtureModelStrategy()
Default constructor.
MixtureModelStrategy(const MixtureModelStrategy &rhs)
Copy constructor.
Raster strategy parameters base class.
An abstract class for raster data strucutures.
Namespace for Raster Processing module of TerraLib.
An abstract class for raster data strucutures.
Configuration flags for the Raster Processing module of TerraLib.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.