Raster mixture model strategy base class.
More...
#include <MixtureModelStrategy.h>
|
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. More...
|
|
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). More...
|
|
const std::string & | getErrorMessage () const |
| Return the current error message if there is any. More...
|
|
virtual bool | getMinMax (std::vector< double > &, std::vector< double > &) const =0 |
|
virtual bool | getMinMaxError (std::vector< double > &, std::vector< double > &) const =0 |
|
virtual bool | getTransformMatrix (boost::numeric::ublas::matrix< double > &matrix) const =0 |
| Returns the used transformation matrix (when applicable). More...
|
|
virtual bool | initialize (StrategyParameters const *const strategyParams)=0 |
| Initialize the segmentation strategy. More...
|
|
virtual bool | setTransformMatrix (boost::numeric::ublas::matrix< double > &matrix)=0 |
| Sets the used transformation matrix. More...
|
|
virtual | ~MixtureModelStrategy () |
| Virtual destructor. More...
|
|
Raster mixture model strategy base class.
Definition at line 49 of file MixtureModelStrategy.h.
◆ ~MixtureModelStrategy()
virtual te::rp::MixtureModelStrategy::~MixtureModelStrategy |
( |
| ) |
|
|
virtual |
◆ MixtureModelStrategy() [1/2]
te::rp::MixtureModelStrategy::MixtureModelStrategy |
( |
| ) |
|
|
protected |
◆ MixtureModelStrategy() [2/2]
Copy constructor.
- Parameters
-
rhs | The right-hand side Raster. |
◆ execute()
virtual bool te::rp::MixtureModelStrategy::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 |
|
) |
| |
|
pure virtual |
Executes the segmentation strategy.
- Parameters
-
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. |
- Returns
- true if OK, false on errors.
Implemented in te::rp::MixtureModelLinearStrategy, and te::rp::MixtureModelPCAStrategy.
◆ generateTransformMatrix()
virtual bool te::rp::MixtureModelStrategy::generateTransformMatrix |
( |
const std::vector< unsigned int > & |
inputRasterBands, |
|
|
const std::vector< std::string > & |
inputSensorBands, |
|
|
const std::map< std::string, std::vector< double > > & |
components |
|
) |
| |
|
pure virtual |
Generates the used transformation matrix (when applicable).
- Parameters
-
inputRasterBands | Input raster bands. |
inputSensorBands | Input names of the sensor/bands. |
components | A set of endmembers and its radiances. |
- Returns
- true if OK, false on errors or not applicable cases.
Implemented in te::rp::MixtureModelLinearStrategy, and te::rp::MixtureModelPCAStrategy.
◆ getErrorMessage()
const std::string & te::rp::MixtureModelStrategy::getErrorMessage |
( |
| ) |
const |
Return the current error message if there is any.
- Returns
- Return the current error message if there is any.
◆ getMinMax()
virtual bool te::rp::MixtureModelStrategy::getMinMax |
( |
std::vector< double > & |
, |
|
|
std::vector< double > & |
|
|
) |
| const |
|
pure virtual |
◆ getMinMaxError()
virtual bool te::rp::MixtureModelStrategy::getMinMaxError |
( |
std::vector< double > & |
, |
|
|
std::vector< double > & |
|
|
) |
| const |
|
pure virtual |
◆ getTransformMatrix()
virtual bool te::rp::MixtureModelStrategy::getTransformMatrix |
( |
boost::numeric::ublas::matrix< double > & |
matrix | ) |
const |
|
pure virtual |
◆ initialize()
virtual bool te::rp::MixtureModelStrategy::initialize |
( |
StrategyParameters const *const |
strategyParams | ) |
|
|
pure virtual |
◆ operator=()
Assignment operator.
- Parameters
-
rhs | The right-hand-side copy that would be used to copy from. |
- Returns
- A reference to this object.
◆ reset()
virtual void te::rp::MixtureModelStrategy::reset |
( |
| ) |
|
|
protectedvirtual |
Reset to an initial state.
◆ setErrorMessage()
void te::rp::MixtureModelStrategy::setErrorMessage |
( |
const std::string & |
newErrorMessage | ) |
|
|
protected |
Set the current error message.
- Parameters
-
newErrorMessage | New error message; |
◆ setTransformMatrix()
virtual bool te::rp::MixtureModelStrategy::setTransformMatrix |
( |
boost::numeric::ublas::matrix< double > & |
matrix | ) |
|
|
pure virtual |
◆ m_errorMessage
std::string te::rp::MixtureModelStrategy::m_errorMessage |
|
private |
The documentation for this class was generated from the following file: