1. Rashad M
  2. OTB-Rashad

Commits

Rashad M  committed 17066dd

Updating headers in GammaCorrection

  • Participants
  • Parent commits 6190f3b
  • Branches default

Comments (0)

Files changed (3)

File Code/ContrastEnhancement/otbGammaCorrectionFilter.h

View file
  • Ignore whitespace
 
 namespace otb
 {
-
 template<class TInput, class TOutput, class TFunctor >
 class ITK_EXPORT GammaCorrectionFilter :
     public itk::UnaryFunctorImageFilter <TInput, TOutput,TFunctor >

File Code/ContrastEnhancement/otbGammaCorrectionFilter.txx

View file
  • Ignore whitespace
 #ifndef __otbGammaCorrectionFilter_txx
 #define __otbGammaCorrectionFilter_txx
 
-
 #include "otbGammaCorrectionFilter.h"
 
 namespace otb
 {
-
 template <class TInput, class TOutput, class TFunctor>
 void
 GammaCorrectionFilter<TInput, TOutput, TFunctor>

File Code/ContrastEnhancement/otbGammaFunctor.h

View file
  • Ignore whitespace
 {
 namespace Functor
 {
-
 template<class TInput, class TOutput>
 class GammaFunctor {
 
 
    for (unsigned int i = 0; i < input.Size(); ++i)
      {
-//output[i] = vcl_pow(m_Range *  (input[i] / m_Range) , m_Gamma);
+     //output[i] = vcl_pow(m_Range *  (input[i] / m_Range) , m_Gamma);
      output[i] = vcl_pow(input[i] , m_Gamma);
      }
     return output;