Loading...
Searching...
No Matches
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.
 
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.
 

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_errorMessage

std::string te::rp::Algorithm::m_errorMessage
privateinherited

Current error message.

Definition at line 104 of file Algorithm.h.

◆ m_inputParameters

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

Input parameters.

Definition at line 129 of file PostClassification.h.

◆ m_isInitialized

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

Is this instance already initialized?

Definition at line 127 of file PostClassification.h.


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