Euclidean Distance Classifier strategy. More...
#include <ClassifierEDStrategy.h>
Classes | |
| class | Parameters |
| Classifier Parameters. More... | |
Public Member Functions | |
| ClassifierEDStrategy () | |
| void | enableMultiThread (const bool &enable) |
| Enable / disable the use of multiple threads. | |
| void | enableOutputPalette (const bool enabled) |
| Enable (true) or disable (false) the creation of a paletted output raster. | |
| void | enableProgressInterface (const bool &enable) |
| Enable / disable the progress interface. | |
| void | enableRasterCache (const bool &enable) |
| Enable / disable the use of raster data cache. | |
| bool | execute () _NOEXCEPT_OP(false) |
| Executes the classification strategy. | |
| const std::string & | getErrorMessage () const |
| Return the current error message if there is any. | |
| void | getMetaData (std::map< std::string, std::string > &metadata) const |
| Returns strategy-dependent metadata. | |
| unsigned int | getOutputNumberBands (void) |
| virtual ClassifierStrategyOutParameters const * | getOutputParameters () const |
| Returns a pointer to the strategy output execution parameters or a null pointer if there are none. | |
| bool | initialize (ClassifierStrategyParameters const *const strategyParams) _NOEXCEPT_OP(false) |
| Initialize the classification strategy. | |
| std::unique_ptr< te::rst::Raster > | releaseOutputRaster () |
| Returns a pointer to the output raster or a void pointer if there is none. | |
| void | setInputPolygons (const std::vector< te::gm::Polygon * > &polygonsPtrs) |
| Set the input polygons. | |
| void | setInputRaster (const te::rst::Raster &raster) |
| Set the input raster. | |
| void | setInputRasterBands (const std::vector< unsigned int > &rasterBands) |
| Set the input raste bandsr. | |
| void | setUserOutputPalette (std::vector< te::rst::BandProperty::ColorEntry > &userPalette) |
| Set the output user palette. | |
| ~ClassifierEDStrategy () | |
Protected Member Functions | |
| bool | createOutputRaster (const std::vector< int > &bandsDataTypes, const std::vector< double > &noDataValues) |
| Create the output raster using the EXPANSIBLE driver. | |
| virtual void | reset () |
| Reset to an initial state. | |
| void | setErrorMessage (const std::string &newErrorMessage) |
| Set the current error message. | |
| bool | setOutputRasterPalette (const unsigned int size) |
| Create and set the output raster palette folowing the current internal settings. | |
Protected Attributes | |
| std::vector< Parameters::ClassIDT > | m_classesIndex2ID |
| An class index ordered vector of classes IDs;. | |
| std::vector< std::vector< double > > | m_classesMeans |
| Classes means;. | |
| bool | m_createRasterPalette |
| Enable (true) or disable (false) the creation of a paletted output raster. | |
| bool | m_enableMultiThread |
| Enable or disable the use multipe threads. | |
| bool | m_enableRasterCache |
| Enable or disable the use a raster data cache. | |
| Parameters::ClassIDT | m_highestTrainClassID |
| The highest train class ID. | |
| ClassifierEDStrategy::Parameters | m_initParams |
| Initialization parameters. | |
| std::vector< te::gm::Polygon * > const * | m_inputPolygonsPtr |
| Input polygons. | |
| std::vector< unsigned int > | m_inputRasterBands |
| Input raster bands. | |
| te::rst::Raster const * | m_inputRasterPtr |
| A pointer to the input raster. | |
| bool | m_isInitialized |
| Is this instance initialized? | |
| std::map< std::string, std::string > | m_metaData |
| Strategy-dependent metadata. | |
| std::unique_ptr< te::rst::Raster > | m_outputRasterPtr |
| A pointer to the output raster. | |
| bool | m_progressInterfaceEnabled |
| Progress interface status. | |
| std::vector< te::rst::BandProperty::ColorEntry > | m_userOutputPalette |
| User output raster palette (it must be large enough to accomodate all classifyier generated classes or an empty vector to automatically generate an random palette. | |
Private Attributes | |
| std::string | m_errorMessage |
| Current error message. | |
Euclidean Distance Classifier strategy.
Definition at line 50 of file ClassifierEDStrategy.h.
| te::rp::ClassifierEDStrategy::ClassifierEDStrategy | ( | ) |
References ClassifierEDStrategy().
Referenced by ClassifierEDStrategy(), and ~ClassifierEDStrategy().
| te::rp::ClassifierEDStrategy::~ClassifierEDStrategy | ( | ) |
References ClassifierEDStrategy().
|
protectedinherited |
Create the output raster using the EXPANSIBLE driver.
| bandsDataTypes | Bands data types. |
| noDataValues | A vector of no-data values for each band. |
References createOutputRaster().
Referenced by createOutputRaster().
|
inherited |
Enable / disable the use of multiple threads.
| enable | Enable (true) or disable (false) the use of multiple threads. |
References enableMultiThread().
Referenced by enableMultiThread().
|
inherited |
Enable (true) or disable (false) the creation of a paletted output raster.
| enabled | Enable (true) or disable (false) the creation of a paletted output raster. |
References enableOutputPalette().
Referenced by enableOutputPalette().
|
inherited |
Enable / disable the progress interface.
| enable | Enable (true) or disable (false) the progress interface. |
References enableProgressInterface().
Referenced by enableProgressInterface().
|
inherited |
Enable / disable the use of raster data cache.
| enable | Enable (true) or disable (false) the use of raster cache. |
References enableRasterCache().
Referenced by enableRasterCache().
|
virtual |
Executes the classification strategy.
Implements te::rp::ClassifierStrategy.
References _NOEXCEPT_OP, and execute().
Referenced by execute().
|
inherited |
Return the current error message if there is any.
References getErrorMessage().
Referenced by getErrorMessage().
|
inherited |
Returns strategy-dependent metadata.
| metadata | Strategy-dependent metadata. |
References getMetaData().
Referenced by getMetaData().
| unsigned int te::rp::ClassifierEDStrategy::getOutputNumberBands | ( | void | ) |
References getOutputNumberBands().
Referenced by getOutputNumberBands().
|
virtualinherited |
Returns a pointer to the strategy output execution parameters or a null pointer if there are none.
Reimplemented in te::rp::ClassifierMAPStrategy.
References getOutputParameters().
Referenced by getOutputParameters().
|
virtual |
Initialize the classification strategy.
| strategyParams | A pointer to the user given specific classification strategy parameters ou NULL if no parameters are present. |
Implements te::rp::ClassifierStrategy.
References _NOEXCEPT_OP, and initialize().
Referenced by initialize().
|
inherited |
Returns a pointer to the output raster or a void pointer if there is none.
References releaseOutputRaster().
Referenced by releaseOutputRaster().
|
protectedvirtualinherited |
|
protectedinherited |
Set the current error message.
| newErrorMessage | New error message; |
References setErrorMessage().
Referenced by setErrorMessage().
|
inherited |
Set the input polygons.
| polygonsPtrs | Input polygons pointers. |
References setInputPolygons().
Referenced by setInputPolygons().
|
inherited |
Set the input raster.
| raster | Input raster. |
References setInputRaster().
Referenced by setInputRaster().
|
inherited |
Set the input raste bandsr.
| rasterBands | Input raster bands. |
References setInputRasterBands().
Referenced by setInputRasterBands().
|
protectedinherited |
Create and set the output raster palette folowing the current internal settings.
| size | Palette size. |
References setOutputRasterPalette().
Referenced by setOutputRasterPalette().
|
inherited |
Set the output user palette.
| userPalette | User output raster palette (it must be large enough to accomodate all classifyier generated classes or an empty vector to automatically generate an random palette. |
References setUserOutputPalette().
Referenced by setUserOutputPalette().
|
protected |
An class index ordered vector of classes IDs;.
Definition at line 109 of file ClassifierEDStrategy.h.
|
protected |
Classes means;.
Definition at line 111 of file ClassifierEDStrategy.h.
|
protectedinherited |
Enable (true) or disable (false) the creation of a paletted output raster.
Definition at line 172 of file ClassifierStrategy.h.
|
protectedinherited |
Enable or disable the use multipe threads.
Definition at line 167 of file ClassifierStrategy.h.
|
protectedinherited |
Enable or disable the use a raster data cache.
Definition at line 162 of file ClassifierStrategy.h.
|
privateinherited |
Current error message.
Definition at line 236 of file ClassifierStrategy.h.
|
protected |
The highest train class ID.
Definition at line 105 of file ClassifierEDStrategy.h.
|
protected |
Initialization parameters.
Definition at line 107 of file ClassifierEDStrategy.h.
|
protectedinherited |
Input polygons.
Definition at line 187 of file ClassifierStrategy.h.
|
protectedinherited |
Input raster bands.
Definition at line 182 of file ClassifierStrategy.h.
|
protectedinherited |
A pointer to the input raster.
Definition at line 152 of file ClassifierStrategy.h.
|
protected |
Is this instance initialized?
Definition at line 103 of file ClassifierEDStrategy.h.
|
protectedinherited |
Strategy-dependent metadata.
Definition at line 192 of file ClassifierStrategy.h.
|
protectedinherited |
A pointer to the output raster.
Definition at line 177 of file ClassifierStrategy.h.
|
protectedinherited |
Progress interface status.
Definition at line 157 of file ClassifierStrategy.h.
|
protectedinherited |
User output raster palette (it must be large enough to accomodate all classifyier generated classes or an empty vector to automatically generate an random palette.
Definition at line 197 of file ClassifierStrategy.h.