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... | |
| const std::string & | getErrorMessage () const |
| Return the current error message if there is any. 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 Member Functions | |
| void | setErrorMessage (const std::string &newErrorMessage) |
| Set the current error message. More... | |
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 65 of file Classifier.h.
| te::rp::Classifier::Classifier | ( | ) |
Definition at line 161 of file src/terralib/rp/Classifier.cpp.
References ~Classifier().
|
default |
Referenced by Classifier().
|
virtual | ||||||||||||||
Executes the algorithm using the supplied parameters.
| outputParams | Output parameters. |
Implements te::rp::Algorithm.
Definition at line 168 of file src/terralib/rp/Classifier.cpp.
References col, te::rp::Classifier::InputParameters::getClassifierStrategyParams(), te::rst::Band::getValue(), te::sa::Grid, te::rp::Classifier::InputParameters::m_createRasterPalette, te::rp::Classifier::InputParameters::m_enableMultiThread, te::rp::Classifier::InputParameters::m_enableProgressInterface, te::rp::Classifier::InputParameters::m_enableRasterCache, m_inputParameters, te::rp::Classifier::InputParameters::m_inputPolygons, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, m_instanceInitialized, te::rp::Classifier::OutputParameters::m_metadata, te::rp::Classifier::OutputParameters::m_outputRasterPtr, te::rp::Classifier::OutputParameters::m_rInfo, te::rp::Classifier::OutputParameters::m_rType, te::rp::Classifier::InputParameters::m_strategyName, te::rst::BandProperty::m_type, te::rp::Classifier::InputParameters::m_userOutputPalette, te::rst::RasterFactory::make(), te::common::AbstractFactory< te::rp::ClassifierStrategy, std::string, std::less< std::string > >::make(), nCols, te::rst::PaletteIdxCInt, te::rst::Band::setValue(), TERP_INSTANCE_TRUE_OR_RETURN_FALSE, and te::dt::UCHAR_TYPE.
Referenced by BOOST_AUTO_TEST_CASE(), DummyClassifier(), EDClassifier(), EMClassifier(), te::qt::widgets::ClassifierWizard::execute(), ISOSegClassifier(), KMeansClassifier(), MAPClassifier(), te::qt::widgets::ClassifierDialog::on_okPushButton_clicked(), and SAMClassifier().
|
inherited |
Return the current error message if there is any.
Definition at line 44 of file rp/Algorithm.cpp.
References te::rp::Algorithm::m_errorMessage.
Referenced by te::qt::widgets::FilterDialogForm::applyPreview(), te::qt::widgets::PostClassificationWidget::execute(), te::qt::widgets::ClassifierWizard::execute(), te::qt::widgets::MixtureModelWizard::execute(), te::qt::widgets::ContrastDialogForm::execute(), te::qt::widgets::FilterDialogForm::execute(), te::qt::widgets::ArithmeticOpDialogForm::execute(), te::qt::widgets::MosaicWizard::executeGeoMosaic(), te::qt::widgets::FusionWizard::executeIHS(), te::qt::widgets::FusionWizard::executePCA(), te::qt::widgets::MosaicWizard::executeSequenceMosaic(), te::qt::widgets::MosaicWizard::executeTiePointMosaic(), and te::qt::widgets::FusionWizard::executeWisper().
|
virtual | ||||||||||||||
Initialize the algorithm instance making it ready for execution.
| inputParams | Input parameters. |
Implements te::rp::Algorithm.
Definition at line 282 of file src/terralib/rp/Classifier.cpp.
References te::rst::Raster::getAccessPolicy(), te::rst::Raster::getExtent(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getSRID(), m_inputParameters, te::rp::Classifier::InputParameters::m_inputPolygons, te::rp::Classifier::InputParameters::m_inputRasterBands, te::rp::Classifier::InputParameters::m_inputRasterPtr, m_instanceInitialized, te::common::RAccess, reset(), and TERP_INSTANCE_TRUE_OR_RETURN_FALSE.
Referenced by BOOST_AUTO_TEST_CASE(), DummyClassifier(), EDClassifier(), EMClassifier(), te::qt::widgets::ClassifierWizard::execute(), ISOSegClassifier(), KMeansClassifier(), MAPClassifier(), te::qt::widgets::ClassifierDialog::on_okPushButton_clicked(), and SAMClassifier().
|
virtual |
Returns true if the algorithm instance is initialized and ready for execution.
Implements te::rp::Algorithm.
Definition at line 334 of file src/terralib/rp/Classifier.cpp.
References m_instanceInitialized.
|
virtual | |||||||||||||
Clear all internal allocated objects and reset the algorithm to its initial state.
Reimplemented from te::rp::Algorithm.
Definition at line 273 of file src/terralib/rp/Classifier.cpp.
References m_inputParameters, m_instanceInitialized, te::rp::Algorithm::reset(), and te::rp::Classifier::InputParameters::reset().
Referenced by initialize().
|
protectedinherited |
Set the current error message.
| newErrorMessage | New error message; |
Definition at line 49 of file rp/Algorithm.cpp.
References te::rp::Algorithm::m_errorMessage.
|
protected |
Classifier execution parameters.
Definition at line 184 of file Classifier.h.
Referenced by execute(), initialize(), and reset().
|
protected |
Is this instance already initialized?
Definition at line 183 of file Classifier.h.
Referenced by execute(), initialize(), isInitialized(), and reset().