26 #ifndef __TERRALIB_RP_INTERNAL_MIXTUREMODELPCASTRATEGY_H
27 #define __TERRALIB_RP_INTERNAL_MIXTUREMODELPCASTRATEGY_H
39 #include <boost/numeric/ublas/matrix.hpp>
91 const std::vector<std::string>& inputSensorBands,
const std::map<std::string, std::vector<double> >& components,
92 std::vector<te::rst::Raster*>& outputRaster,
const bool normalize,
const bool enableProgressInterface) ;
101 bool generateTransformMatrix(
const std::vector<unsigned int>& inputRasterBands,
const std::vector<std::string>& inputSensorBands,
102 const std::map<std::string, std::vector<double> >& components);
105 bool getMinMax(std::vector<double>&, std::vector<double>&)
const;
Raster mixture model strategy factory base class.
Raster mixture model strategy base class.
Abstract parameters base interface.
Raster PCA mixture model strategy factory.
~MixtureModelPCAStrategyFactory()
MixtureModelPCAStrategyFactory()
te::rp::MixtureModelStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
const Parameters & operator=(const Parameters ¶ms)
te::common::AbstractParameters * clone() const
Create a clone copy of this instance.
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
bool serialize(AlgorithmParametersSerializer &serializer) const
Returns a parameter serialization object.
bool setTransformMatrix(boost::numeric::ublas::matrix< double > &matrix)
Sets the used transformation matrix.
bool getMinMaxError(std::vector< double > &, std::vector< double > &) const
bool m_isInitialized
True if this instance is initialized.
MixtureModelPCAStrategy::Parameters m_parameters
Internal execution parameters.
std::vector< double > m_maxerror
Maximum error value.
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_min
Transformation matrix;.
bool initialize(StrategyParameters const *const strategyParams)
Initialize the segmentation strategy.
MixtureModelPCAStrategy()
boost::numeric::ublas::matrix< double > m_transfMatrix
bool getMinMax(std::vector< double > &, std::vector< double > &) const
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).
std::vector< double > m_minerror
Minimun error value.
std::vector< double > m_max
Maximum value.
bool getTransformMatrix(boost::numeric::ublas::matrix< double > &matrix) const
Returns the used transformation matrix (when applicable).
~MixtureModelPCAStrategy()
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).