26#ifndef __TERRALIB_RP_INTERNAL_MIXTUREMODELLINEARSTRATEGY_H
27#define __TERRALIB_RP_INTERNAL_MIXTUREMODELLINEARSTRATEGY_H
39#include <boost/numeric/ublas/matrix.hpp>
109 const std::vector<std::string>& inputSensorBands,
const std::map<std::string, std::vector<double> >& components,
110 std::vector<te::rst::Raster*>& outputRaster,
const bool normalize,
const bool enableProgressInterface) ;
120 const std::vector<unsigned int>& inputRasterBands,
121 const std::vector<std::string>& inputSensorBands,
122 const std::map<std::string, std::vector<double> >& components );
125 bool getMinMax(std::vector<double>&, std::vector<double>&)
const;
140 const std::vector<unsigned int>& inputRasterBands,
141 const std::vector<std::string>& inputSensorBands,
142 const std::map<std::string, std::vector<double> >& components,
143 std::vector<te::rst::Raster*>& outputRaster,
const bool normalize,
const bool enableProgressInterface) ;
147 const std::vector<unsigned int>& inputRasterBands,
148 const std::vector<std::string>& inputSensorBands,
149 const std::map<std::string, std::vector<double> >& components,
150 std::vector<te::rst::Raster*>& outputRaster,
const bool normalize,
const bool enableProgressInterface) ;
Raster mixture model strategy factory base class.
Raster mixture model strategy base class.
Abstract parameters base interface.
Raster linear mixture model strategy factory.
~MixtureModelLinearStrategyFactory()
MixtureModelLinearStrategyFactory()
te::rp::MixtureModelStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
bool serialize(AlgorithmParametersSerializer &serializer) const
Returns a parameter serialization object.
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
const Parameters & operator=(const Parameters ¶ms)
te::common::AbstractParameters * clone() const
Create a clone copy of this instance.
@ InvalidMethodT
Invalid type.
@ LST
Least Square Method.
bool setTransformMatrix(boost::numeric::ublas::matrix< double > &matrix)
Sets the used transformation matrix.
~MixtureModelLinearStrategy()
MixtureModelLinearStrategy::Parameters m_parameters
Internal execution parameters.
boost::numeric::ublas::matrix< double > m_AMatrix
std::vector< double > m_max
Maximum value.
bool executeRLS3T(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)
std::vector< double > m_maxerror
Maximum error value.
bool generateTransformMatrix(const std::vector< unsigned int > &inputRasterBands, const std::vector< std::string > &inputSensorBands, const std::map< std::string, std::vector< double > > &components)
Generates the used transformation matrix (when applicable).
bool getMinMax(std::vector< double > &, std::vector< double > &) const
bool getTransformMatrix(boost::numeric::ublas::matrix< double > &matrix) const
Returns the used transformation matrix (when applicable).
bool getMinMaxError(std::vector< double > &, std::vector< double > &) const
bool initialize(StrategyParameters const *const strategyParams)
Initialize the segmentation strategy.
MixtureModelLinearStrategy()
std::vector< double > m_min
A matrix.
bool m_isInitialized
True if this instance is initialized.
bool executeLST(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)
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)
Executes the segmentation strategy.
std::vector< double > m_minerror
Minimun error value.
Raster Mixture model strategy factory base class.
Mixture model strategy parameters base class.
Raster mixture model strategy base class.
Raster strategy parameters base class.
An abstract class for raster data strucutures.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).