Raster post classification. More...
#include <PostClassification.h>
Classes | |
| class | InputParameters |
| Filter input parameters. More... | |
| class | OutputParameters |
| PostClassification output parameters. More... | |
Public Member Functions | |
| bool | execute (AlgorithmOutputParameters &outputParams) _NOEXCEPT_OP(false) |
| Executes the algorithm using the supplied parameters. | |
| const std::string & | getErrorMessage () const |
| Return the current error message if there is any. | |
| bool | initialize (const AlgorithmInputParameters &inputParams) _NOEXCEPT_OP(false) |
| Initialize the algorithm instance making it ready for execution. | |
| bool | isInitialized () const |
| Returns true if the algorithm instance is initialized and ready for execution. | |
| PostClassification () | |
| void | reset () _NOEXCEPT_OP(false) |
| Clear all internal allocated objects and reset the algorithm to its initial state. | |
| ~PostClassification () | |
Protected Member Functions | |
| bool | runPostClassification (const te::rst::Raster &srcRaster, te::rst::Raster &dstRaster, unsigned int weight, unsigned int threshold) |
| Apply the post classification. | |
| void | setErrorMessage (const std::string &newErrorMessage) |
| Set the current error message. | |
Protected Attributes | |
| PostClassification::InputParameters | m_inputParameters |
| Input parameters. | |
| bool | m_isInitialized |
| Is this instance already initialized? | |
Private Attributes | |
| std::string | m_errorMessage |
| Current error message. | |
Raster post classification.
Definition at line 40 of file PostClassification.h.
| te::rp::PostClassification::PostClassification | ( | ) |
References PostClassification().
Referenced by PostClassification(), and ~PostClassification().
| te::rp::PostClassification::~PostClassification | ( | ) |
References PostClassification().
|
virtual |
Executes the algorithm using the supplied parameters.
| outputParams | Output parameters. |
Implements te::rp::Algorithm.
References _NOEXCEPT_OP, and execute().
Referenced by execute().
|
inherited |
Return the current error message if there is any.
References getErrorMessage().
Referenced by getErrorMessage().
|
virtual |
Initialize the algorithm instance making it ready for execution.
| inputParams | Input parameters. |
Implements te::rp::Algorithm.
References _NOEXCEPT_OP, and initialize().
Referenced by initialize().
|
virtual |
Returns true if the algorithm instance is initialized and ready for execution.
Implements te::rp::Algorithm.
References isInitialized().
Referenced by isInitialized().
|
virtual |
Clear all internal allocated objects and reset the algorithm to its initial state.
Reimplemented from te::rp::Algorithm.
References _NOEXCEPT_OP, and reset().
Referenced by reset().
|
protected |
Apply the post classification.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| weight | Weight value. |
| threshold | Threshold value. |
| useProgress | if true, the progress interface must be used. |
References runPostClassification().
Referenced by runPostClassification().
|
protectedinherited |
Set the current error message.
| newErrorMessage | New error message; |
References setErrorMessage().
Referenced by setErrorMessage().
|
privateinherited |
Current error message.
Definition at line 104 of file Algorithm.h.
|
protected |
Input parameters.
Definition at line 129 of file PostClassification.h.
|
protected |
Is this instance already initialized?
Definition at line 127 of file PostClassification.h.