![]() |
Orfeo Toolbox
3.16
|
base class for R, G And NIR based Index Implement operators for UnaryFunctorImageFilter templated with a VectorImage and BinaryFunctorImageFilter templated with single images. Subclasses should NOT overload operators, they must re-implement the Evaluate() method. More...
#include <otbVegetationIndicesFunctor.h>
Inheritance diagram for otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >:Public Types | |
| typedef itk::VariableLengthVector < TInput1 > | InputVectorType |
Public Member Functions | |
| RAndGAndNIRIndexBase () | |
| Constructor. | |
| virtual | ~RAndGAndNIRIndexBase () |
| Desctructor. | |
| unsigned int | GetGreenIndex () const |
| Get Green Index. | |
| unsigned int | GetIndex (BandName::BandName band) const |
| virtual std::string | GetName () const =0 |
| unsigned int | GetNIRIndex () const |
| Get NIR Index. | |
| unsigned int | GetRedIndex () const |
| Get Red Index. | |
| bool | operator!= (const RAndGAndNIRIndexBase &) const |
| TOutput | operator() (const InputVectorType &inputVector) |
| TOutput | operator() (const TInput1 &r, const TInput2 &g, const TInput2 &nir) |
| bool | operator== (const RAndGAndNIRIndexBase &other) const |
| void | SetGreenIndex (unsigned int channel) |
| Set Green Index. | |
| void | SetIndex (BandName::BandName band, unsigned int channel) |
| void | SetNIRIndex (unsigned int channel) |
| Set NIR Index. | |
| void | SetRedIndex (unsigned int channel) |
| Set Red Index. | |
Protected Member Functions | |
| virtual TOutput | Evaluate (const TInput1 &r, const TInput2 &g, const TInput3 &nir) const =0 |
Protected Attributes | |
| double | m_EpsilonToBeConsideredAsZero |
Private Attributes | |
| unsigned int | m_GreenIndex |
| unsigned int | m_NIRIndex |
| unsigned int | m_RedIndex |
base class for R, G And NIR based Index Implement operators for UnaryFunctorImageFilter templated with a VectorImage and BinaryFunctorImageFilter templated with single images. Subclasses should NOT overload operators, they must re-implement the Evaluate() method.
Definition at line 276 of file otbVegetationIndicesFunctor.h.
| typedef itk::VariableLengthVector<TInput1> otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::InputVectorType |
Vector pixel type used to support both vector images and multiple input images
Definition at line 281 of file otbVegetationIndicesFunctor.h.
|
inline |
Constructor.
Definition at line 308 of file otbVegetationIndicesFunctor.h.
|
inlinevirtual |
Desctructor.
Definition at line 310 of file otbVegetationIndicesFunctor.h.
|
protectedpure virtual |
|
inline |
Get Green Index.
Definition at line 361 of file otbVegetationIndicesFunctor.h.
References otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_GreenIndex.
|
inline |
Get index, generic method
Definition at line 329 of file otbVegetationIndicesFunctor.h.
References otb::BandName::GREEN, otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_GreenIndex, otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_NIRIndex, otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_RedIndex, otb::BandName::NIR, and otb::BandName::RED.
|
pure virtual |
Return the index name
Implemented in otb::Functor::AVI< TInput1, TInput2, TInput3, TOutput >.
|
inline |
Get NIR Index.
Definition at line 372 of file otbVegetationIndicesFunctor.h.
References otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_NIRIndex.
|
inline |
Get Red Index.
Definition at line 351 of file otbVegetationIndicesFunctor.h.
References otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_RedIndex.
|
inline |
Definition at line 284 of file otbVegetationIndicesFunctor.h.
|
inline |
Definition at line 295 of file otbVegetationIndicesFunctor.h.
References otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::Evaluate(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_GreenIndex, otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_NIRIndex, and otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_RedIndex.
|
inline |
Definition at line 303 of file otbVegetationIndicesFunctor.h.
References otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::Evaluate().
|
inline |
Definition at line 289 of file otbVegetationIndicesFunctor.h.
|
inline |
Set Green Index.
Definition at line 356 of file otbVegetationIndicesFunctor.h.
References otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_GreenIndex.
|
inline |
Set index, generic method
Definition at line 313 of file otbVegetationIndicesFunctor.h.
References otb::BandName::GREEN, otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_GreenIndex, otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_NIRIndex, otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_RedIndex, otb::BandName::NIR, and otb::BandName::RED.
|
inline |
Set NIR Index.
Definition at line 367 of file otbVegetationIndicesFunctor.h.
References otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_NIRIndex.
|
inline |
Set Red Index.
Definition at line 346 of file otbVegetationIndicesFunctor.h.
References otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::m_RedIndex.
|
protected |
Definition at line 384 of file otbVegetationIndicesFunctor.h.
Referenced by otb::Functor::AVI< TInput1, TInput2, TInput3, TOutput >::Evaluate().
|
private |
Definition at line 388 of file otbVegetationIndicesFunctor.h.
Referenced by otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::GetGreenIndex(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::GetIndex(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::operator()(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::SetGreenIndex(), and otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::SetIndex().
|
private |
Definition at line 389 of file otbVegetationIndicesFunctor.h.
Referenced by otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::GetIndex(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::GetNIRIndex(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::operator()(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::SetIndex(), and otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::SetNIRIndex().
|
private |
Definition at line 387 of file otbVegetationIndicesFunctor.h.
Referenced by otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::GetIndex(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::GetRedIndex(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::operator()(), otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::SetIndex(), and otb::Functor::RAndGAndNIRIndexBase< TInput1, TInput2, TInput3, TOutput >::SetRedIndex().