OTB  9.0.0
Orfeo Toolbox
Public Types | List of all members
otb::Functor::IndicesStackFunctor< TIndice > Class Template Reference

#include <otbIndicesStackFunctor.h>

+ Collaboration diagram for otb::Functor::IndicesStackFunctor< TIndice >:

Public Types

using IndiceType = TIndice
 
using OutputType = itk::VariableLengthVector< typename IndiceType::OutputType >
 
using PixelType = typename IndiceType::PixelType
 
std::vector< IndiceType * > m_Indices
 
 IndicesStackFunctor (const std::vector< IndiceType * > &indices)
 
void operator() (OutputType &out, const PixelType &in) const
 
vcl_size_t OutputSize (...) const
 

Detailed Description

template<typename TIndice>
class otb::Functor::IndicesStackFunctor< TIndice >

A class to compute a stack of radiometric indices.

This functor can be built from a vector of TIndice*. its operator() will apply each functor of this vector to the input pixel, and return a VariableLengthVector containing the list resulting values. It can be used with otb::FunctorImageFilter

See also
FunctorImageFilter

Definition at line 47 of file otbIndicesStackFunctor.h.

Member Typedef Documentation

◆ IndiceType

template<typename TIndice >
using otb::Functor::IndicesStackFunctor< TIndice >::IndiceType = TIndice

Read input / output types from TIndice.

Definition at line 51 of file otbIndicesStackFunctor.h.

◆ OutputType

template<typename TIndice >
using otb::Functor::IndicesStackFunctor< TIndice >::OutputType = itk::VariableLengthVector<typename IndiceType::OutputType>

Definition at line 55 of file otbIndicesStackFunctor.h.

◆ PixelType

template<typename TIndice >
using otb::Functor::IndicesStackFunctor< TIndice >::PixelType = typename IndiceType::PixelType

Definition at line 52 of file otbIndicesStackFunctor.h.

Constructor & Destructor Documentation

◆ IndicesStackFunctor()

template<typename TIndice >
otb::Functor::IndicesStackFunctor< TIndice >::IndicesStackFunctor ( const std::vector< IndiceType * > &  indices)
inline
Parameters
indicesA std::vector<IndiceType*> for indices to compute the indice stack
Exceptions
std::runtime_errorif indices is empty

Definition at line 62 of file otbIndicesStackFunctor.h.

Member Function Documentation

◆ operator()()

template<typename TIndice >
void otb::Functor::IndicesStackFunctor< TIndice >::operator() ( OutputType out,
const PixelType in 
) const
inline
Parameters
inputA itk::VariableLengthVector<TInput> holding the pixel values for each band
Returns
A VariableLengthVector<TInput::OutputType> holding all the indices values

Definition at line 77 of file otbIndicesStackFunctor.h.

References otb::Functor::IndicesStackFunctor< TIndice >::m_Indices.

◆ OutputSize()

template<typename TIndice >
vcl_size_t otb::Functor::IndicesStackFunctor< TIndice >::OutputSize (   ...) const
inline
Returns
the size of the indices list (to be used by FunctorImgeFilter)

Definition at line 90 of file otbIndicesStackFunctor.h.

References otb::Functor::IndicesStackFunctor< TIndice >::m_Indices.

Member Data Documentation

◆ m_Indices

template<typename TIndice >
std::vector<IndiceType*> otb::Functor::IndicesStackFunctor< TIndice >::m_Indices
private

The documentation for this class was generated from the following file: