26 #ifndef __TERRALIB_RP_INTERNAL_MIXTUREMODELSTRATEGY_H 27 #define __TERRALIB_RP_INTERNAL_MIXTUREMODELSTRATEGY_H 30 #include "../raster/Raster.h" 39 #include <boost/numeric/ublas/matrix.hpp> 61 virtual bool initialize(
StrategyParameters const*
const strategyParams)
throw(te::rp::Exception) = 0;
74 virtual bool execute(
const te::rst::Raster& inputRaster,
const std::vector<unsigned int>& inputRasterBands,
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)
throw(te::rp::Exception) = 0;
83 virtual bool getTransformMatrix( boost::numeric::ublas::matrix<double>& matrix )
const = 0;
90 virtual bool setTransformMatrix(boost::numeric::ublas::matrix<double>& matrix) = 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;
110 const std::string& getErrorMessage()
const;
122 void setErrorMessage(
const std::string& newErrorMessage );
127 virtual void reset();
158 #endif // __TERRALIB_RP_INTERNAL_MIXTUREMODELSTRATEGY_H std::string m_errorMessage
Current error message.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Raster mixture model strategy base class.
An abstract class for raster data strucutures.
Raster strategy parameters base class.
Raster strategy parameters base class.
rasterPointer reset(te::rst::RasterFactory::make("MEM", new te::rst::Grid(nCols, nLines), bandsProps, std::map< std::string, std::string >(), 0, 0))
TEMNTEXPORT void getMinMax(te::rst::Raster *inputRst, double &vmin, double &vmax)
Configuration flags for the Raster Processing module of TerraLib.