#include <ClassifierISODataStrategy.h>
Classes | |
| class | Parameters |
| Classifier Parameters. More... | |
Public Member Functions | |
| ClassifierISODataStrategy () | |
| 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. | |
| 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. | |
| ~ClassifierISODataStrategy () | |
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 | |
| 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. | |
| te::cl::ISOData | m_genericClassifierInstance |
| Internal generic classifier instance. | |
| 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 |
| True if this instance is 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. | |
| ClassifierISODataStrategy::Parameters | m_parameters |
| Internal execution parameters. | |
| 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. | |
Definition at line 49 of file ClassifierISODataStrategy.h.
| te::rp::ClassifierISODataStrategy::ClassifierISODataStrategy | ( | ) |
References ClassifierISODataStrategy().
Referenced by ClassifierISODataStrategy(), and ~ClassifierISODataStrategy().
| te::rp::ClassifierISODataStrategy::~ClassifierISODataStrategy | ( | ) |
References ClassifierISODataStrategy().
|
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().
|
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().
|
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 |
Internal generic classifier instance.
Definition at line 97 of file ClassifierISODataStrategy.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 |
True if this instance is initialized.
Definition at line 95 of file ClassifierISODataStrategy.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.
|
protected |
Internal execution parameters.
Definition at line 96 of file ClassifierISODataStrategy.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.