#include <Contrast.h>
  
Classes | |
| class | InputParameters | 
| Contrast input parameters.  More... | |
| class | OutputParameters | 
| Contrast output parameters.  More... | |
Public Member Functions | |
| Contrast () | |
| bool | execute (AlgorithmOutputParameters &outputParams) | 
| 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) | 
| 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... | |
| void | reset () | 
| Clear all internal allocated objects and reset the algorithm to its initial state.  More... | |
| ~Contrast () | |
Static Public Member Functions | |
| static bool | getGainAndOffset (const InputParameters::ContrastType &type, const double &inRangeMin, const double &inRangeMax, const double &outRangeMin, const double &outRangeMax, double &gain, double &offset1, double &offset2) | 
| Returns gain and offset values for contrast types (when applicable).  More... | |
Protected Types | |
| typedef void(Contrast::* | RemapFuncPtrT) (const double &inValue, double &outValue) | 
| Type definition for a remapping function pointer.  More... | |
Protected Member Functions | |
| void | DecorrelationEnhancementRemap (const double &inValue, double &outValue) | 
| Remap on gray level using two offsets and gain.  More... | |
| bool | execCumulativeCut2Enhancement () | 
| Execute a cumulative linear contrast cutted by 2-98% following the internal parameters.  More... | |
| bool | execDecorrelationEnhancement () | 
| Execute the decorrelation enhancement contrast following the internal parameters.  More... | |
| bool | execHistogramEqualizationContrast () | 
| Execute the histogram equalization contrast following the internal parameters.  More... | |
| bool | execLinearContrast () | 
| Execute a linear contrast following the internal parameters.  More... | |
| bool | execLogContrast () | 
| Execute a log contrast following the internal parameters.  More... | |
| bool | execSetMeanAndStdContrast () | 
| Execute the histogram equalization contrast following the internal parameters.  More... | |
| bool | execSquareContrast () | 
| Execute a square contrast following the internal parameters.  More... | |
| bool | execSquareRootContrast () | 
| Execute a square root contrast following the internal parameters.  More... | |
| void | histogramEqualizationRemap (const double &inValue, double &outValue) | 
| Remap on gray level using two offsets and gain.  More... | |
| void | logRemap (const double &inValue, double &outValue) | 
| Remap on gray level using a log.  More... | |
| void | offSetGainRemap (const double &inValue, double &outValue) | 
| Remap on gray level using an offset and gain.  More... | |
| bool | remapBandLevels (const te::rst::Raster &inRaster, const unsigned int inRasterBandIdx, te::rst::Raster &outRaster, const unsigned int outRasterBandIdx, RemapFuncPtrT remapFuncPtr, const bool enableProgress) | 
| Band gray levels remap using a remap function.  More... | |
| void | setErrorMessage (const std::string &newErrorMessage) | 
| Set the current error message.  More... | |
| void | squareRemap (const double &inValue, double &outValue) | 
| Remap on gray level using a square.  More... | |
| void | squareRootRemap (const double &inValue, double &outValue) | 
| Remap on gray level using a square root.  More... | |
Protected Attributes | |
| double | m_decorrelationEnhancementRemap_gain | 
| double | m_decorrelationEnhancementRemap_offset1 | 
| double | m_decorrelationEnhancementRemap_offset2 | 
| std::map< double, double > | m_histogramEqualizationRemap_cdf | 
| double | m_histogramEqualizationRemap_cDFMin | 
| double | m_histogramEqualizationRemap_gain | 
| Contrast::InputParameters | m_inputParameters | 
| Contrast input execution parameters.  More... | |
| bool | m_isInitialized | 
| Tells if this instance is initialized.  More... | |
| double | m_logRemap_gain | 
| double | m_logRemap_offset | 
| double | m_offSetGainRemap_gain | 
| double | m_offSetGainRemap_offset1 | 
| double | m_offSetGainRemap_offset2 | 
| Contrast::OutputParameters * | m_outputParametersPtr | 
| Contrast input execution parameters.  More... | |
| double | m_squareRemap_gain | 
| double | m_squareRootRemap_gain | 
Private Attributes | |
| std::string | m_errorMessage | 
| Current error message.  More... | |
Contrast enhancement.
Apply contrast enhencement on the selected bands.
Definition at line 57 of file Contrast.h.
      
  | 
  protected | 
Type definition for a remapping function pointer.
Definition at line 260 of file Contrast.h.
| te::rp::Contrast::Contrast | ( | ) | 
| te::rp::Contrast::~Contrast | ( | ) | 
      
  | 
  inlineprotected | 
Remap on gray level using two offsets and gain.
| inValue | Input gray level. | 
| outValue | Output gray level. | 
Definition at line 408 of file Contrast.h.
      
  | 
  protected | 
Execute a cumulative linear contrast cutted by 2-98% following the internal parameters.
      
  | 
  protected | 
Execute the decorrelation enhancement contrast following the internal parameters.
      
  | 
  protected | 
Execute the histogram equalization contrast following the internal parameters.
      
  | 
  protected | 
Execute a linear contrast following the internal parameters.
      
  | 
  protected | 
Execute a log contrast following the internal parameters.
      
  | 
  protected | 
Execute the histogram equalization contrast following the internal parameters.
      
  | 
  protected | 
Execute a square contrast following the internal parameters.
      
  | 
  protected | 
Execute a square root contrast following the internal parameters.
      
  | 
  virtual | 
Executes the algorithm using the supplied parameters.
| outputParams | Output parameters. | 
Implements te::rp::Algorithm.
      
  | 
  inherited | 
Return the current error message if there is any.
      
  | 
  static | 
Returns gain and offset values for contrast types (when applicable).
| inRangeMin | Input values range minimum value. | 
| inRangeMax | Input values range maximum value. | 
| outRangeMin | Output values range minimum value. | 
| outRangeMax | Output values range maximum value. | 
| gain | Calculated gain. | 
| offset1 | Calculated offset 1. | 
| offset2 | Calculated offset 2. | 
      
  | 
  inlineprotected | 
Remap on gray level using two offsets and gain.
| inValue | Input gray level. | 
| outValue | Output gray level. | 
Definition at line 420 of file Contrast.h.
      
  | 
  virtual | 
Initialize the algorithm instance making it ready for execution.
| inputParams | Input parameters. | 
Implements te::rp::Algorithm.
      
  | 
  virtual | 
Returns true if the algorithm instance is initialized and ready for execution.
Implements te::rp::Algorithm.
      
  | 
  inlineprotected | 
Remap on gray level using a log.
| inValue | Input gray level. | 
| outValue | Output gray level. | 
Definition at line 398 of file Contrast.h.
      
  | 
  inlineprotected | 
Remap on gray level using an offset and gain.
| inValue | Input gray level. | 
| outValue | Output gray level. | 
Definition at line 364 of file Contrast.h.
      
  | 
  protected | 
Band gray levels remap using a remap function.
| inRaster | Input Raster | 
| inRasterBandIdx | Input raster band index. | 
| outRaster | Output raster. | 
| outRasterBandIdx | Output raster band index. | 
| remapFuncPtr | The remap function pointer used. | 
| enableProgress | Enable the use of a progress interface. | 
      
  | 
  virtual | 
Clear all internal allocated objects and reset the algorithm to its initial state.
Reimplemented from te::rp::Algorithm.
      
  | 
  protectedinherited | 
Set the current error message.
| newErrorMessage | New error message; | 
      
  | 
  inlineprotected | 
Remap on gray level using a square.
| inValue | Input gray level. | 
| outValue | Output gray level. | 
Definition at line 376 of file Contrast.h.
      
  | 
  inlineprotected | 
Remap on gray level using a square root.
| inValue | Input gray level. | 
| outValue | Output gray level. | 
Definition at line 387 of file Contrast.h.
      
  | 
  protected | 
Definition at line 349 of file Contrast.h.
      
  | 
  protected | 
Definition at line 350 of file Contrast.h.
      
  | 
  protected | 
Definition at line 351 of file Contrast.h.
      
  | 
  privateinherited | 
Current error message.
Definition at line 104 of file Algorithm.h.
      
  | 
  protected | 
Definition at line 356 of file Contrast.h.
      
  | 
  protected | 
Definition at line 354 of file Contrast.h.
      
  | 
  protected | 
Definition at line 355 of file Contrast.h.
      
  | 
  protected | 
Contrast input execution parameters.
Definition at line 263 of file Contrast.h.
      
  | 
  protected | 
Tells if this instance is initialized.
Definition at line 266 of file Contrast.h.
      
  | 
  protected | 
Definition at line 345 of file Contrast.h.
      
  | 
  protected | 
Definition at line 346 of file Contrast.h.
      
  | 
  protected | 
Definition at line 336 of file Contrast.h.
      
  | 
  protected | 
Definition at line 334 of file Contrast.h.
      
  | 
  protected | 
Definition at line 335 of file Contrast.h.
      
  | 
  protected | 
Contrast input execution parameters.
Definition at line 264 of file Contrast.h.
      
  | 
  protected | 
Definition at line 339 of file Contrast.h.
      
  | 
  protected | 
Definition at line 342 of file Contrast.h.