OTB  9.0.0
Orfeo Toolbox
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
otb::Functor::WDVI< TInput, TOutput > Class Template Reference

#include <otbVegetationIndicesFunctor.h>

+ Inheritance diagram for otb::Functor::WDVI< TInput, TOutput >:
+ Collaboration diagram for otb::Functor::WDVI< TInput, TOutput >:

Public Member Functions

TOutput operator() (const itk::VariableLengthVector< TInput > &input) const override
 
 WDVI ()
 
- Public Member Functions inherited from otb::Functor::RadiometricIndex< TInput, TOutput >
 RadiometricIndex (const std::set< BandNameType > &requiredBands)
 
virtual ~RadiometricIndex ()=default
 
std::set< BandNameTypeGetRequiredBands () const
 
void SetBandIndex (BandNameType band, vcl_size_t index)
 
void SetBandsIndices (const std::map< BandNameType, vcl_size_t > &indicesMap)
 
vcl_size_t GetBandIndex (BandNameType band) const
 

Static Public Member Functions

static double Compute (const double &red, const double &nir)
 

Static Public Attributes

static constexpr double S = 0.4
 
- Static Public Attributes inherited from otb::Functor::RadiometricIndex< TInput, TOutput >
static constexpr double Epsilon = 0.0000001
 
static constexpr vcl_size_t NumberOfBands = static_cast<vcl_size_t>(BandNameType::MAX)
 

Additional Inherited Members

- Public Types inherited from otb::Functor::RadiometricIndex< TInput, TOutput >
using BandNameType = CommonBandNames
 
using InputType = TInput
 
using OutputType = TOutput
 
using PixelType = itk::VariableLengthVector< InputType >
 
- Protected Member Functions inherited from otb::Functor::RadiometricIndex< TInput, TOutput >
vcl_size_t UncheckedBandIndex (BandNameType band) const
 
double Value (BandNameType band, const itk::VariableLengthVector< TInput > &input) const
 

Detailed Description

template<class TInput, class TOutput>
class otb::Functor::WDVI< TInput, TOutput >

This functor computes the Weighted Difference Vegetation Index (WDVI)

[Clevers, 1988]

Definition at line 222 of file otbVegetationIndicesFunctor.h.

Constructor & Destructor Documentation

◆ WDVI()

template<class TInput , class TOutput >
otb::Functor::WDVI< TInput, TOutput >::WDVI ( )
inline

Constructor.

Definition at line 226 of file otbVegetationIndicesFunctor.h.

Member Function Documentation

◆ Compute()

template<class TInput , class TOutput >
static double otb::Functor::WDVI< TInput, TOutput >::Compute ( const double &  red,
const double &  nir 
)
inlinestatic

◆ operator()()

template<class TInput , class TOutput >
TOutput otb::Functor::WDVI< TInput, TOutput >::operator() ( const itk::VariableLengthVector< TInput > &  input) const
inlineoverridevirtual

Astract method which will compute the radiometric indice

Parameters
inputA itk::VariableLengthVector<TInput> holding the pixel values for each band
Returns
The indice value as TOutput (starts at 1 for first band)

Implements otb::Functor::RadiometricIndex< TInput, TOutput >.

Definition at line 230 of file otbVegetationIndicesFunctor.h.

References otb::Functor::WDVI< TInput, TOutput >::Compute(), and otb::Functor::RadiometricIndex< TInput, TOutput >::Value().

Member Data Documentation

◆ S

template<class TInput , class TOutput >
constexpr double otb::Functor::WDVI< TInput, TOutput >::S = 0.4
staticconstexpr

Slope of soil line

Definition at line 244 of file otbVegetationIndicesFunctor.h.

Referenced by otb::Functor::WDVI< TInput, TOutput >::Compute().


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