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.;