#include <MixtureModelLinearStrategy.h>
Classes | |
| class | Parameters |
| MixtureModel Parameters. More... | |
Public Member Functions | |
| 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) throw (te::rp::Exception) |
| Executes the segmentation strategy. More... | |
| 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). More... | |
| const std::string & | getErrorMessage () const |
| Return the current error message if there is any. More... | |
| bool | getMinMax (std::vector< double > &, std::vector< double > &) const |
| bool | getMinMaxError (std::vector< double > &, std::vector< double > &) const |
| bool | getTransformMatrix (boost::numeric::ublas::matrix< double > &matrix) const |
| Returns the used transformation matrix (when applicable). More... | |
| bool | initialize (StrategyParameters const *const strategyParams) throw (te::rp::Exception) |
| Initialize the segmentation strategy. More... | |
| MixtureModelLinearStrategy () | |
| bool | setTransformMatrix (boost::numeric::ublas::matrix< double > &matrix) |
| Sets the used transformation matrix. More... | |
| ~MixtureModelLinearStrategy () | |
Protected Member Functions | |
| virtual void | reset () |
| Reset to an initial state. More... | |
| void | setErrorMessage (const std::string &newErrorMessage) |
| Set the current error message. More... | |
Protected Attributes | |
| bool | m_isInitialized |
| True if this instance is initialized. More... | |
| std::vector< double > | m_max |
| Maximum value. More... | |
| std::vector< double > | m_maxerror |
| Maximum error value. More... | |
| std::vector< double > | m_min |
| Transpose of A (A is the set of known reflectances for each component);. More... | |
| std::vector< double > | m_minerror |
| Minimun error value. More... | |
| MixtureModelLinearStrategy::Parameters | m_parameters |
| Internal execution parameters. More... | |
| boost::numeric::ublas::matrix< double > | m_transfMatrix |
| boost::numeric::ublas::matrix< double > | m_transposeA |
| Transformation matrix;. More... | |
Definition at line 51 of file MixtureModelLinearStrategy.h.
| te::rp::MixtureModelLinearStrategy::MixtureModelLinearStrategy | ( | ) |
Definition at line 70 of file MixtureModelLinearStrategy.cpp.
References m_isInitialized.
| te::rp::MixtureModelLinearStrategy::~MixtureModelLinearStrategy | ( | ) |
Definition at line 75 of file MixtureModelLinearStrategy.cpp.
|
virtual | ||||||||||||||||||||||||||||||||||||||||
Executes the segmentation strategy.
| inputRaster | Input raster. |
| inputRasterBands | Input raster bands. |
| components | The set of endmembers and its radiances. |
| outputRaster | Output raster vector, contains output raster and error raster if requested. |
| enableProgressInterface | Enable the internal strategy to update the progress interface. |
Implements te::rp::MixtureModelStrategy.
Definition at line 95 of file MixtureModelLinearStrategy.cpp.
References b, te::dt::DOUBLE_TYPE, generateTransformMatrix(), te::rp::GetDigitalNumberBandMax(), te::rp::GetDigitalNumberBandMin(), te::common::GetInverseMatrix(), te::rst::GrayIdxCInt, te::sa::Grid, te::rst::BandProperty::m_colorInterp, m_isInitialized, m_max, m_maxerror, m_min, m_minerror, m_transfMatrix, m_transposeA, te::rst::BandProperty::m_type, te::rst::RasterFactory::make(), TE_TR, TERP_TRUE_OR_RETURN_FALSE, and te::common::TaskProgress::UNDEFINED.
|
virtual |
Generates the used transformation matrix (when applicable).
| inputRasterBands | Input raster bands. |
| inputSensorBands | Input names of the sensor/bands. |
| components | A set of endmembers and its radiances. |
Implements te::rp::MixtureModelStrategy.
Definition at line 257 of file MixtureModelLinearStrategy.cpp.
References te::rp::GetDigitalNumberBandMax(), m_transfMatrix, and m_transposeA.
Referenced by execute().
|
inherited |
Return the current error message if there is any.
Definition at line 38 of file MixtureModelStrategy.cpp.
References te::rp::MixtureModelStrategy::m_errorMessage.
|
virtual |
Implements te::rp::MixtureModelStrategy.
Definition at line 299 of file MixtureModelLinearStrategy.cpp.
|
virtual |
Implements te::rp::MixtureModelStrategy.
Definition at line 306 of file MixtureModelLinearStrategy.cpp.
References m_maxerror, and m_minerror.
|
virtual |
Returns the used transformation matrix (when applicable).
| matrix | The transformation matrix. |
Implements te::rp::MixtureModelStrategy.
Definition at line 243 of file MixtureModelLinearStrategy.cpp.
References m_transfMatrix.
|
virtual | ||||||||||||||
Initialize the segmentation strategy.
| strategyParams | A pointer to the user given specific segmentation strategy parameters ou NULL if no parameters are present. |
Implements te::rp::MixtureModelStrategy.
Definition at line 79 of file MixtureModelLinearStrategy.cpp.
References m_isInitialized, and m_parameters.
|
protectedvirtualinherited |
Reset to an initial state.
Definition at line 48 of file MixtureModelStrategy.cpp.
References te::rp::MixtureModelStrategy::m_errorMessage.
|
protectedinherited |
Set the current error message.
| newErrorMessage | New error message; |
Definition at line 43 of file MixtureModelStrategy.cpp.
References te::rp::MixtureModelStrategy::m_errorMessage.
|
virtual |
Sets the used transformation matrix.
| matrix | The transformation matrix. |
Implements te::rp::MixtureModelStrategy.
Definition at line 251 of file MixtureModelLinearStrategy.cpp.
References m_transfMatrix.
|
protected |
True if this instance is initialized.
Definition at line 108 of file MixtureModelLinearStrategy.h.
Referenced by execute(), initialize(), and MixtureModelLinearStrategy().
|
protected |
Maximum value.
Definition at line 113 of file MixtureModelLinearStrategy.h.
Referenced by execute(), and getMinMax().
|
protected |
Maximum error value.
Definition at line 115 of file MixtureModelLinearStrategy.h.
Referenced by execute(), and getMinMaxError().
|
protected |
Transpose of A (A is the set of known reflectances for each component);.
Minimun value
Definition at line 112 of file MixtureModelLinearStrategy.h.
Referenced by execute(), and getMinMax().
|
protected |
Minimun error value.
Definition at line 114 of file MixtureModelLinearStrategy.h.
Referenced by execute(), and getMinMaxError().
|
protected |
Internal execution parameters.
Definition at line 109 of file MixtureModelLinearStrategy.h.
Referenced by initialize().
|
protected |
Definition at line 110 of file MixtureModelLinearStrategy.h.
Referenced by execute(), generateTransformMatrix(), getTransformMatrix(), and setTransformMatrix().
|
protected |
Transformation matrix;.
Definition at line 111 of file MixtureModelLinearStrategy.h.
Referenced by execute(), and generateTransformMatrix().