Raster decomposition using mixture model. More...
#include <MixtureModel.h>
Classes | |
class | InputParameters |
MixtureModel input parameters. More... | |
class | OutputParameters |
MixtureModel output parameters. More... | |
Public Member Functions | |
bool | execute (AlgorithmOutputParameters &outputParams) throw (te::rp::Exception) |
Executes the algorithm using the supplied parameters. More... | |
bool | initialize (const AlgorithmInputParameters &inputParams) throw (te::rp::Exception) |
Initialize the algorithm instance making it ready for execution. More... | |
bool | isInitialized () const |
Returns true if the algorithm instance is initialized and ready for execution. More... | |
MixtureModel () | |
void | reset () throw (te::rp::Exception) |
Clear all internal allocated objects and reset the algorithm to its initial state. More... | |
~MixtureModel () | |
Protected Attributes | |
MixtureModel::InputParameters | m_inputParameters |
Mixture model execution parameters. More... | |
bool | m_instanceInitialized |
Is this instance already initialized? More... | |
Raster decomposition using mixture model.
Raster decomposition following the choosed mixture model strategy.
Definition at line 59 of file MixtureModel.h.
te::rp::MixtureModel::MixtureModel | ( | ) |
Definition at line 151 of file MixtureModel.cpp.
te::rp::MixtureModel::~MixtureModel | ( | ) |
Definition at line 156 of file MixtureModel.cpp.
|
virtual |
Executes the algorithm using the supplied parameters.
outputParams | Output parameters. |
Implements te::rp::Algorithm.
Definition at line 160 of file MixtureModel.cpp.
References te::dt::DOUBLE_TYPE, te::rst::GrayIdxCInt, te::sa::Grid, te::rst::BandProperty::m_colorInterp, te::rp::MixtureModel::OutputParameters::m_createErrorRaster, te::rst::BandProperty::m_description, te::rst::BandProperty::m_noDataValue, te::rp::MixtureModel::OutputParameters::m_normalizeOutput, te::rp::MixtureModel::OutputParameters::m_outputRasterPtr, te::rp::MixtureModel::OutputParameters::m_rInfo, te::rp::MixtureModel::OutputParameters::m_rType, te::rst::BandProperty::m_type, te::rst::RasterFactory::make(), te::common::AbstractFactory< te::rp::MixtureModelStrategy, std::string, std::less< std::string > >::make(), te::rp::NormalizeRaster(), and TERP_TRUE_OR_RETURN_FALSE.
Referenced by te::qt::widgets::MixtureModelWizard::execute(), and te::qt::widgets::MixtureModelDialog::on_okPushButton_clicked().
|
virtual |
Initialize the algorithm instance making it ready for execution.
inputParams | Input parameters. |
Implements te::rp::Algorithm.
Definition at line 232 of file MixtureModel.cpp.
References te::rst::Raster::getAccessPolicy(), te::rst::Raster::getNumberOfBands(), te::rp::MixtureModel::InputParameters::m_components, te::rp::MixtureModel::InputParameters::m_inputRasterBands, te::rp::MixtureModel::InputParameters::m_inputRasterPtr, te::rp::MixtureModel::InputParameters::m_inputSensorBands, te::common::RAccess, TERP_LOGWARN, and TERP_TRUE_OR_RETURN_FALSE.
Referenced by te::qt::widgets::MixtureModelWizard::execute(), and te::qt::widgets::MixtureModelDialog::on_okPushButton_clicked().
|
virtual |
Returns true if the algorithm instance is initialized and ready for execution.
Implements te::rp::Algorithm.
Definition at line 286 of file MixtureModel.cpp.
|
virtual |
Clear all internal allocated objects and reset the algorithm to its initial state.
Implements te::rp::Algorithm.
Definition at line 225 of file MixtureModel.cpp.
Referenced by te::rp::MixtureModel::InputParameters::operator=(), te::rp::MixtureModel::OutputParameters::operator=(), te::rp::MixtureModel::OutputParameters::OutputParameters(), te::rp::MixtureModel::InputParameters::~InputParameters(), and te::rp::MixtureModel::OutputParameters::~OutputParameters().
|
protected |
Mixture model execution parameters.
Definition at line 176 of file MixtureModel.h.
|
protected |
Is this instance already initialized?
Definition at line 175 of file MixtureModel.h.