TerraLib 4.1
TePDIAlgorithm Class Reference

The base class for digital image processing algorithms. More...

#include <TePDIAlgorithm.hpp>

Inheritance diagram for TePDIAlgorithm:
TePDIArithmetic TePDIBaatz TePDIBatchGeoMosaic TePDIBufferedFilter TePDIColorTransform TePDIContrast TePDICorrelationMatching TePDIDecorrelationEnhancement TePDIEMClas TePDIFFT TePDIFusionIndexes TePDIGarguetFusion TePDIGeneralizedIHSFusion TePDIGeoMosaic TePDIHants TePDIHaralick TePDIIHSFusion TePDIIHSWaveletFusion TePDIIsosegClas TePDIKMeansClas TePDILevelRemap TePDIMallatWavelets TePDIMIMatching TePDIMixModel TePDIMMIOMatching TePDIOFMatching TePDIParallelSegmenter TePDIPCAWaveletFusion TePDIPrincipalComponents TePDIPrincipalComponentsFusion TePDIRaster2Vector TePDIRegGrowSeg TePDIRegister TePDISAMClassifier TePDISensorSimulator TePDISimplex TePDIStatistic TePDITPMosaic TePDIVenturaFusion TePDIWaveletAtrous TePDIWaveletAtrousFusion TePDIWiSpeRFusion

List of all members.

Public Types

typedef TeSharedPtr
< TePDIAlgorithm
pointer
typedef const TeSharedPtr
< TePDIAlgorithm
const_pointer

Public Member Functions

virtual ~TePDIAlgorithm ()
 Default Destructor.
bool Apply ()
 Applies the algorithm following the current state and internal stored parameters.
bool Apply (const TePDIParameters &params)
 Applies the algorithm following the state defined by the supplied parameters.
bool Reset (const TePDIParameters &params)
 Reset the internal state with new supplied parameters.
virtual bool CheckParameters (const TePDIParameters &parameters) const =0
 Checks if the supplied parameters fits the requirements of each PDI algorithm implementation.
const TePDIParametersGetParameters () const
 Returns a reference to the current internal parameters.
void ToggleProgInt (bool enabled)
 Enable / Disable the progress interface.

Static Public Member Functions

static TePDIAlgorithmDefaultObject (const TePDIParameters &params)
 Returns a default object.

Protected Member Functions

 TePDIAlgorithm ()
 Default Constructor.
virtual bool RunImplementation ()=0
 Runs the current algorithm implementation.
virtual void ResetState (const TePDIParameters &params)=0
 Reset the internal state to the initial state.
bool CheckInternalParameters () const
 Checks if current internal parameters fits the requirements of each PDI algorithm implementation.
void StartProgInt (const std::string &message, unsigned int steps)
 Start the progress interface.
bool UpdateProgInt (unsigned int step)
 Update the current progress interface to the current step.
bool IncProgInt ()
 Increments the the current progress by one step.
void StopProgInt ()
 Stop the progress interface.

Protected Attributes

TePDIParameters params_
 Internal parameters reference.
bool progress_enabled_
 A flag to indicate when the algorithm should initiate a progress interface.
TePDIPIManager pi_manager_
 The internal progress interface.

Detailed Description

The base class for digital image processing algorithms.

Author:
Emiliano F. Castejon <castejon@dpi.inpe.br>

Member Typedef Documentation


Constructor & Destructor Documentation

TePDIAlgorithm::~TePDIAlgorithm ( ) [virtual]

Default Destructor.

TePDIAlgorithm::TePDIAlgorithm ( ) [protected]

Default Constructor.


Member Function Documentation

bool TePDIAlgorithm::Apply ( const TePDIParameters params)

Applies the algorithm following the state defined by the supplied parameters.

Parameters:
paramsThe new supplied parameters.
Returns:
true if OK. false on error.
bool TePDIAlgorithm::CheckInternalParameters ( ) const [protected]

Checks if current internal parameters fits the requirements of each PDI algorithm implementation.

Note:
Error log messages must be generated. No exceptions generated.
Returns:
true if the internal parameters are OK. false if not.
TePDIAlgorithm * TePDIAlgorithm::DefaultObject ( const TePDIParameters params) [static]

Returns a default object.

Returns:
A default object.
const TePDIParameters & TePDIAlgorithm::GetParameters ( ) const

Returns a reference to the current internal parameters.

Returns:
A reference to the current internal parameters.
bool TePDIAlgorithm::IncProgInt ( ) [protected]

Increments the the current progress by one step.

Returns:
true if the interface was canceled, false otherwise.
Deprecated:
DEPRECATED - This method will be removed in the future (each algorithm must check the variable TePDIAlgorithm::progress_enabled_ and instantiate its own TePDIPIManager when necessary).
void TePDIAlgorithm::StartProgInt ( const std::string message,
unsigned int  steps 
) [protected]

Start the progress interface.

Parameters:
messageProgress window message.
stepsProgress window total steps.
Deprecated:
DEPRECATED - This method will be removed in the future (each algorithm must check the variable TePDIAlgorithm::progress_enabled_ and instantiate its own TePDIPIManager when necessary).
void TePDIAlgorithm::StopProgInt ( ) [protected]

Stop the progress interface.

Deprecated:
DEPRECATED - This method will be removed in the future (each algorithm must check the variable TePDIAlgorithm::progress_enabled_ and instantiate its own TePDIPIManager when necessary).
void TePDIAlgorithm::ToggleProgInt ( bool  enabled)

Enable / Disable the progress interface.

Parameters:
enabledFlag to enable ( true ) or disable ( false ).
Examples:
TePDICorrelationMatching_test.cpp, TePDIMIMatching_test.cpp, and TePDIOFMatching_test.cpp.
bool TePDIAlgorithm::UpdateProgInt ( unsigned int  step) [protected]

Update the current progress interface to the current step.

Parameters:
stepCurrent step.
Returns:
true if the interface was canceled, false otherwise.
Deprecated:
DEPRECATED - This method will be removed in the future (each algorithm must check the variable TePDIAlgorithm::progress_enabled_ and instantiate its own TePDIPIManager when necessary).

Member Data Documentation

Internal parameters reference.

The internal progress interface.

Deprecated:
DEPRECATED - This object will be removed in the future (each algorithm must check the variable TePDIAlgorithm::progress_enabled_ and instantiate its own TePDIPIManager when necessary).

A flag to indicate when the algorithm should initiate a progress interface.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines