OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Private Attributes | 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
 

Public Member Functions

void operator() (OutputType &out, const PixelType &in) const
 
vcl_size_t OutputSize (...) const
 
 IndicesStackFunctor (const std::vector< IndiceType * > &indices)
 

Private Attributes

std::vector< IndiceType * > m_Indices
 

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

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

Read input / output types from TIndice.

Definition at line 51 of file otbIndicesStackFunctor.h.

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

Definition at line 55 of file otbIndicesStackFunctor.h.

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

Definition at line 52 of file otbIndicesStackFunctor.h.

Constructor & Destructor Documentation

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

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.

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

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

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