Raster classification. More...
#include <Classifier.h>
Classes | |
| class | InputParameters |
| Classifier input parameters. More... | |
| class | OutputParameters |
| Classifier output parameters. More... | |
Public Member Functions | |
| Classifier () | |
| 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... | |
| void | reset () throw (te::rp::Exception) |
| Clear all internal allocated objects and reset the algorithm to its initial state. More... | |
| ~Classifier () | |
Protected Attributes | |
| Classifier::InputParameters | m_inputParameters |
| Classifier execution parameters. More... | |
| bool | m_instanceInitialized |
| Is this instance already initialized? More... | |
Raster classification.
Raster classification following the choosed strategy.
Definition at line 64 of file Classifier.h.
| te::rp::Classifier::Classifier | ( | ) |
Definition at line 149 of file Classifier.cpp.
| te::rp::Classifier::~Classifier | ( | ) |
Definition at line 154 of file Classifier.cpp.
|
virtual | ||||||||||||||
Executes the algorithm using the supplied parameters.
| outputParams | Output parameters. |
Implements te::rp::Algorithm.
Definition at line 158 of file Classifier.cpp.
References te::rst::GrayIdxCInt, te::sa::Grid, te::rp::Classifier::OutputParameters::m_outputRasterPtr, te::rp::Classifier::OutputParameters::m_rInfo, te::rp::Classifier::OutputParameters::m_rType, te::rst::RasterFactory::make(), te::common::AbstractFactory< te::rp::ClassifierStrategy, std::string, std::less< std::string > >::make(), TERP_TRUE_OR_RETURN_FALSE, and te::dt::UINT32_TYPE.
Referenced by te::qt::widgets::ClassifierWizard::execute(), and te::qt::widgets::ClassifierDialog::on_okPushButton_clicked().
|
virtual | ||||||||||||||
Initialize the algorithm instance making it ready for execution.
| inputParams | Input parameters. |
Implements te::rp::Algorithm.
Definition at line 200 of file Classifier.cpp.
References te::rst::Raster::getAccessPolicy(), te::rst::Raster::getExtent(), te::rst::Raster::getNumberOfBands(), te::rp::Classifier::InputParameters::m_inputPolygons, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, te::common::RAccess, and TERP_TRUE_OR_RETURN_FALSE.
Referenced by te::qt::widgets::ClassifierWizard::execute(), and te::qt::widgets::ClassifierDialog::on_okPushButton_clicked().
|
virtual |
Returns true if the algorithm instance is initialized and ready for execution.
Implements te::rp::Algorithm.
Definition at line 238 of file Classifier.cpp.
|
virtual | |||||||||||||
Clear all internal allocated objects and reset the algorithm to its initial state.
Implements te::rp::Algorithm.
Definition at line 193 of file Classifier.cpp.
Referenced by te::rp::Classifier::InputParameters::operator=(), te::rp::Classifier::OutputParameters::operator=(), te::rp::Classifier::OutputParameters::OutputParameters(), te::rp::Classifier::InputParameters::~InputParameters(), and te::rp::Classifier::OutputParameters::~OutputParameters().
|
protected |
Classifier execution parameters.
Definition at line 178 of file Classifier.h.
|
protected |
Is this instance already initialized?
Definition at line 177 of file Classifier.h.