te::rp::PostClassification Class Reference

Raster post classification. More...

#include <PostClassification.h>

Inheritance diagram for te::rp::PostClassification:
te::rp::Algorithm

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. More...
 
const std::string & getErrorMessage () const
 Return the current error message if there is any. More...
 
bool initialize (const AlgorithmInputParameters &inputParams) _NOEXCEPT_OP(false)
 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...
 
 PostClassification ()
 
void reset () _NOEXCEPT_OP(false)
 Clear all internal allocated objects and reset the algorithm to its initial state. More...
 
 ~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. More...
 
void setErrorMessage (const std::string &newErrorMessage)
 Set the current error message. More...
 

Protected Attributes

PostClassification::InputParameters m_inputParameters
 Input parameters. More...
 
bool m_isInitialized
 Is this instance already initialized? More...
 

Detailed Description

Raster post classification.

Definition at line 40 of file PostClassification.h.

Constructor & Destructor Documentation

◆ PostClassification()

te::rp::PostClassification::PostClassification ( )

◆ ~PostClassification()

te::rp::PostClassification::~PostClassification ( )

Member Function Documentation

◆ execute()

bool te::rp::PostClassification::execute ( AlgorithmOutputParameters outputParams)
virtual

Executes the algorithm using the supplied parameters.

Parameters
outputParamsOutput parameters.
Returns
true if OK, false on errors.
Note
A return error string can be obtained via Algorithm::getErrorMessage()

Implements te::rp::Algorithm.

◆ getErrorMessage()

const std::string& te::rp::Algorithm::getErrorMessage ( ) const
inherited

Return the current error message if there is any.

Returns
Return the current error message if there is any.

◆ initialize()

bool te::rp::PostClassification::initialize ( const AlgorithmInputParameters inputParams)
virtual

Initialize the algorithm instance making it ready for execution.

Parameters
inputParamsInput parameters.
Returns
true if OK, false on errors.
Note
A return error string can be obtained via Algorithm::getErrorMessage()

Implements te::rp::Algorithm.

◆ isInitialized()

bool te::rp::PostClassification::isInitialized ( ) const
virtual

Returns true if the algorithm instance is initialized and ready for execution.

Returns
true if the algorithm instance is initialized and ready for execution.

Implements te::rp::Algorithm.

◆ reset()

void te::rp::PostClassification::reset ( )
virtual

Clear all internal allocated objects and reset the algorithm to its initial state.

Reimplemented from te::rp::Algorithm.

◆ runPostClassification()

bool te::rp::PostClassification::runPostClassification ( const te::rst::Raster srcRaster,
te::rst::Raster dstRaster,
unsigned int  weight,
unsigned int  threshold 
)
protected

Apply the post classification.

Parameters
srcRasterSource raster.
srcBandIdxSource raster band index.
dstRasterDestination raster.
dstBandIdxDestination raster band index.
weightWeight value.
thresholdThreshold value.
useProgressif true, the progress interface must be used.

◆ setErrorMessage()

void te::rp::Algorithm::setErrorMessage ( const std::string &  newErrorMessage)
protectedinherited

Set the current error message.

Parameters
newErrorMessageNew error message;

Member Data Documentation

◆ m_inputParameters

PostClassification::InputParameters te::rp::PostClassification::m_inputParameters
protected

Input parameters.

Definition at line 124 of file PostClassification.h.

◆ m_isInitialized

bool te::rp::PostClassification::m_isInitialized
protected

Is this instance already initialized?

Definition at line 122 of file PostClassification.h.


The documentation for this class was generated from the following file: