21 #ifndef otbIndicesStackFunctor_h
22 #define otbIndicesStackFunctor_h
26 #include "itkVariableLengthVector.h"
46 template <
typename TIndice>
55 using OutputType = itk::VariableLengthVector<typename IndiceType::OutputType>;
66 throw std::runtime_error(
"Can not build IndicesStackFunctor from an empty list of indices.");
82 out[idx] = (*indice)(in);
A class to compute a stack of radiometric indices.
typename IndiceType::PixelType PixelType
itk::VariableLengthVector< typename IndiceType::OutputType > OutputType
vcl_size_t OutputSize(...) const
std::vector< IndiceType * > m_Indices
The list of indices to use.
TIndice IndiceType
Read input / output types from TIndice.
IndicesStackFunctor(const std::vector< IndiceType * > &indices)
void operator()(OutputType &out, const PixelType &in) const
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.