21 #ifndef otbBuiltUpIndicesFunctor_h
22 #define otbBuiltUpIndicesFunctor_h
40 template <
class TInput,
class TOutput>
48 TOutput
operator()(
const itk::VariableLengthVector<TInput>& input)
const override
50 auto red = this->
Value(CommonBandNames::RED, input);
51 auto nir = this->
Value(CommonBandNames::NIR, input);
55 return static_cast<TOutput
>(0.);
58 return (
static_cast<TOutput
>(
A - (
B * red) / nir));
61 static constexpr
double A = 100.;
62 static constexpr
double B = 25.;
This functor computes the Index surfaces built (ISU)
static constexpr double B
TOutput operator()(const itk::VariableLengthVector< TInput > &input) const override
static constexpr double A
Base class for all radiometric indices.
double Value(BandNameType band, const itk::VariableLengthVector< TInput > &input) const
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.