![]() |
TerraLib 4.1
|
The base class for digital image processing algorithms. More...
#include <TePDIAlgorithm.hpp>
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 ¶ms) |
| Applies the algorithm following the state defined by the supplied parameters. | |
| bool | Reset (const TePDIParameters ¶ms) |
| Reset the internal state with new supplied parameters. | |
| virtual bool | CheckParameters (const TePDIParameters ¶meters) const =0 |
| Checks if the supplied parameters fits the requirements of each PDI algorithm implementation. | |
| const TePDIParameters & | GetParameters () const |
| Returns a reference to the current internal parameters. | |
| void | ToggleProgInt (bool enabled) |
| Enable / Disable the progress interface. | |
Static Public Member Functions | |
| static TePDIAlgorithm * | DefaultObject (const TePDIParameters ¶ms) |
| Returns a default object. | |
Protected Member Functions | |
| TePDIAlgorithm () | |
| Default Constructor. | |
| virtual bool | RunImplementation ()=0 |
| Runs the current algorithm implementation. | |
| virtual void | ResetState (const TePDIParameters ¶ms)=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. | |
The base class for digital image processing algorithms.
Type definition for a const algorithm instance pointer.
Reimplemented in TePDIBufferedFilter, TePDIEMClas, TePDIFusionIndexes, TePDIGeneralizedIHSFusion, TePDIIsosegClas, TePDIKMeansClas, TePDILevelRemap, TePDILinearFilter, TePDIRadarFilter, TePDIRadarFrostFilter, TePDIRadarGammaFilter, TePDIRadarKuanFilter, TePDIRadarLeeFilter, TePDIRaster2Vector, TePDISensorSimulator, and TePDIStatistic.
Type definition for an algorithm instance pointer.
Reimplemented in TePDIBufferedFilter, TePDIEMClas, TePDIFusionIndexes, TePDIGeneralizedIHSFusion, TePDIIsosegClas, TePDIKMeansClas, TePDILevelRemap, TePDILinearFilter, TePDIRadarFilter, TePDIRadarFrostFilter, TePDIRadarGammaFilter, TePDIRadarKuanFilter, TePDIRadarLeeFilter, TePDIRaster2Vector, TePDISensorSimulator, and TePDIStatistic.
| TePDIAlgorithm::~TePDIAlgorithm | ( | ) | [virtual] |
Default Destructor.
| TePDIAlgorithm::TePDIAlgorithm | ( | ) | [protected] |
Default Constructor.
| bool TePDIAlgorithm::Apply | ( | ) |
Applies the algorithm following the current state and internal stored parameters.
| bool TePDIAlgorithm::Apply | ( | const TePDIParameters & | params | ) |
Applies the algorithm following the state defined by the supplied parameters.
| params | The new supplied parameters. |
| bool TePDIAlgorithm::CheckInternalParameters | ( | ) | const [protected] |
Checks if current internal parameters fits the requirements of each PDI algorithm implementation.
| virtual bool TePDIAlgorithm::CheckParameters | ( | const TePDIParameters & | parameters | ) | const [pure virtual] |
Checks if the supplied parameters fits the requirements of each PDI algorithm implementation.
| parameters | The parameters to be checked. |
Implemented in TePDIArithmetic, TePDIBaatz, TePDIBatchGeoMosaic, TePDIBDFilter, TePDIColorTransform, TePDIContrast, TePDICorrelationMatching, TePDIDecorrelationEnhancement, TePDIEMClas, TePDIFFT, TePDIFusionIndexes, TePDIGarguetFusion, TePDIGeneralizedIHSFusion, TePDIGeoMosaic, TePDIHants, TePDIHaralick, TePDIIHSFusion, TePDIIHSWaveletFusion, TePDIIsosegClas, TePDIKMeansClas, TePDILinearFilter, TePDIMallatWavelets, TePDIMIMatching, TePDIMixModel, TePDIMMIOMatching, TePDIMorfFilter, TePDIOFMatching, TePDIParallelSegmenter, TePDIPCAWaveletFusion, TePDIPrincipalComponents, TePDIPrincipalComponentsFusion, TePDIRadarFrostFilter, TePDIRadarGammaFilter, TePDIRadarKuanFilter, TePDIRadarLeeFilter, TePDIRaster2Vector, TePDIRegGrowSeg, TePDIRegister, TePDISAMClassifier, TePDISensorSimulator, TePDISimplex, TePDIStatistic, TePDITPMosaic, TePDIVenturaFusion, TePDIWaveletAtrous, TePDIWaveletAtrousFusion, and TePDIWiSpeRFusion.
| TePDIAlgorithm * TePDIAlgorithm::DefaultObject | ( | const TePDIParameters & | params | ) | [static] |
Returns a default object.
| const TePDIParameters & TePDIAlgorithm::GetParameters | ( | ) | const |
Returns a reference to the current internal parameters.
| bool TePDIAlgorithm::IncProgInt | ( | ) | [protected] |
Increments the the current progress by one step.
| bool TePDIAlgorithm::Reset | ( | const TePDIParameters & | params | ) |
Reset the internal state with new supplied parameters.
| params | The new supplied parameters. |
| virtual void TePDIAlgorithm::ResetState | ( | const TePDIParameters & | params | ) | [protected, pure virtual] |
Reset the internal state to the initial state.
| params | The new parameters referente at initial state. |
Implemented in TePDIArithmetic, TePDIBaatz, TePDIBatchGeoMosaic, TePDIBDFilter, TePDIBufferedFilter, TePDIColorTransform, TePDIContrast, TePDICorrelationMatching, TePDIDecorrelationEnhancement, TePDIEMClas, TePDIFFT, TePDIFusionIndexes, TePDIGarguetFusion, TePDIGeneralizedIHSFusion, TePDIGeoMosaic, TePDIHants, TePDIHaralick, TePDIIHSFusion, TePDIIHSWaveletFusion, TePDIIsosegClas, TePDIKMeansClas, TePDILevelRemap, TePDILinearFilter, TePDIMallatWavelets, TePDIMIMatching, TePDIMixModel, TePDIMMIOMatching, TePDIMorfFilter, TePDIOFMatching, TePDIParallelSegmenter, TePDIPCAWaveletFusion, TePDIPrincipalComponents, TePDIPrincipalComponentsFusion, TePDIRadarFilter, TePDIRadarFrostFilter, TePDIRadarGammaFilter, TePDIRadarKuanFilter, TePDIRadarLeeFilter, TePDIRaster2Vector, TePDIRegGrowSeg, TePDIRegister, TePDISAMClassifier, TePDISensorSimulator, TePDISimplex, TePDIStatistic, TePDITPMosaic, TePDIVenturaFusion, TePDIWaveletAtrous, TePDIWaveletAtrousFusion, and TePDIWiSpeRFusion.
| virtual bool TePDIAlgorithm::RunImplementation | ( | ) | [protected, pure virtual] |
Runs the current algorithm implementation.
Implemented in TePDIArithmetic, TePDIBaatz, TePDIBatchGeoMosaic, TePDIBDFilter, TePDIColorTransform, TePDIContrast, TePDICorrelationMatching, TePDIDecorrelationEnhancement, TePDIEMClas, TePDIFFT, TePDIFusionIndexes, TePDIGarguetFusion, TePDIGeneralizedIHSFusion, TePDIGeoMosaic, TePDIHants, TePDIHaralick, TePDIIHSFusion, TePDIIHSWaveletFusion, TePDIIsosegClas, TePDIKMeansClas, TePDILinearFilter, TePDIMallatWavelets, TePDIMIMatching, TePDIMixModel, TePDIMMIOMatching, TePDIMorfFilter, TePDIOFMatching, TePDIParallelSegmenter, TePDIPCAWaveletFusion, TePDIPrincipalComponents, TePDIPrincipalComponentsFusion, TePDIRadarFrostFilter, TePDIRadarGammaFilter, TePDIRadarKuanFilter, TePDIRadarLeeFilter, TePDIRaster2Vector, TePDIRegGrowSeg, TePDIRegister, TePDISAMClassifier, TePDISensorSimulator, TePDISimplex, TePDIStatistic, TePDITPMosaic, TePDIVenturaFusion, TePDIWaveletAtrous, TePDIWaveletAtrousFusion, and TePDIWiSpeRFusion.
| void TePDIAlgorithm::StartProgInt | ( | const std::string & | message, |
| unsigned int | steps | ||
| ) | [protected] |
Start the progress interface.
| message | Progress window message. |
| steps | Progress window total steps. |
| void TePDIAlgorithm::StopProgInt | ( | ) | [protected] |
Stop the progress interface.
| void TePDIAlgorithm::ToggleProgInt | ( | bool | enabled | ) |
Enable / Disable the progress interface.
| enabled | Flag to enable ( true ) or disable ( false ). |
| bool TePDIAlgorithm::UpdateProgInt | ( | unsigned int | step | ) | [protected] |
Update the current progress interface to the current step.
| step | Current step. |
TePDIParameters TePDIAlgorithm::params_ [mutable, protected] |
Internal parameters reference.
TePDIPIManager TePDIAlgorithm::pi_manager_ [protected] |
The internal progress interface.
bool TePDIAlgorithm::progress_enabled_ [protected] |
A flag to indicate when the algorithm should initiate a progress interface.