|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
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);
itk::VariableLengthVector< typename IndiceType::OutputType > OutputType
IndicesStackFunctor(const std::vector< IndiceType * > &indices)
typename IndiceType::PixelType PixelType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
std::vector< IndiceType * > m_Indices
The list of indices to use.
A class to compute a stack of radiometric indices.
void operator()(OutputType &out, const PixelType &in) const
TIndice IndiceType
Read input / output types from TIndice.
vcl_size_t OutputSize(...) const