OTB  10.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::Function::ChannelSelectorFunctor< TInputPixel > Class Template Reference

#include <otbChannelSelectorFunctor.h>

+ Inheritance diagram for otb::Function::ChannelSelectorFunctor< TInputPixel >:
+ Collaboration diagram for otb::Function::ChannelSelectorFunctor< TInputPixel >:

Public Types

using ChannelListType = std::vector< unsigned int >
 
using ConstPointer = itk::SmartPointer< const Self >
 
using OutputPixelType = VectorPixelType
 
using PixelType = TInputPixel
 
using Pointer = itk::SmartPointer< Self >
 
using RGBAPixelType = itk::RGBAPixel< ScalarType >
 
using RGBPixelType = itk::RGBPixel< ScalarType >
 
using ScalarType = typename itk::NumericTraits< PixelType >::ValueType
 
using Self = ChannelSelectorFunctor
 
using Superclass = itk::Object
 
using VectorPixelType = itk::VariableLengthVector< ScalarType >
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual unsigned int GetChannelIndex (unsigned int channelPosition) const
 
virtual std::vector< unsigned int > GetChannelList () const
 
const char * GetDescription () const
 
virtual const char * GetNameOfClass () const
 
virtual unsigned int GetOutputSize () const
 
virtual OutputPixelType operator() (const RGBAPixelType &inPixel) const
 
virtual OutputPixelType operator() (const RGBPixelType &inPixel) const
 
virtual OutputPixelType operator() (const VectorPixelType &inPixel) const
 
virtual OutputPixelType operator() (ScalarType inPixel) const
 
virtual void SetChannelIndex (unsigned int channelPosition, unsigned int channel)
 
virtual void SetChannelList (std::vector< unsigned int > channels)
 

Static Public Member Functions

static Pointer New ()
 
ChannelListType m_ChannelList
 
bool usingDefaultParameters
 
virtual void SetAllChannels (unsigned int channel)
 
virtual void SetRedChannelIndex (unsigned int channel)
 
virtual void SetGreenChannelIndex (unsigned int channel)
 
virtual void SetBlueChannelIndex (unsigned int channel)
 
virtual unsigned int GetRedChannelIndex () const
 
virtual unsigned int GetGreenChannelIndex () const
 
virtual unsigned int GetBlueChannelIndex () const
 
virtual bool IsUsingDefaultParameters ()
 
 ChannelSelectorFunctor ()
 
 ~ChannelSelectorFunctor ()=default
 

Detailed Description

template<class TInputPixel>
class otb::Function::ChannelSelectorFunctor< TInputPixel >

Base class for pixel representation functions.

See also
AmplitudeFunctor PhaseFunctor

Definition at line 45 of file otbChannelSelectorFunctor.h.

Member Typedef Documentation

◆ ChannelListType

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::ChannelListType = std::vector<unsigned int>

Definition at line 66 of file otbChannelSelectorFunctor.h.

◆ ConstPointer

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::ConstPointer = itk::SmartPointer<const Self>

Definition at line 52 of file otbChannelSelectorFunctor.h.

◆ OutputPixelType

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::OutputPixelType = VectorPixelType

Definition at line 65 of file otbChannelSelectorFunctor.h.

◆ PixelType

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::PixelType = TInputPixel

Definition at line 60 of file otbChannelSelectorFunctor.h.

◆ Pointer

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::Pointer = itk::SmartPointer<Self>

Definition at line 51 of file otbChannelSelectorFunctor.h.

◆ RGBAPixelType

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::RGBAPixelType = itk::RGBAPixel<ScalarType>

Definition at line 64 of file otbChannelSelectorFunctor.h.

◆ RGBPixelType

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::RGBPixelType = itk::RGBPixel<ScalarType>

Definition at line 63 of file otbChannelSelectorFunctor.h.

◆ ScalarType

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::ScalarType = typename itk::NumericTraits<PixelType>::ValueType

Definition at line 61 of file otbChannelSelectorFunctor.h.

◆ Self

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::Self = ChannelSelectorFunctor

Standard class typedefs

Definition at line 49 of file otbChannelSelectorFunctor.h.

◆ Superclass

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::Superclass = itk::Object

Definition at line 50 of file otbChannelSelectorFunctor.h.

◆ VectorPixelType

template<class TInputPixel >
using otb::Function::ChannelSelectorFunctor< TInputPixel >::VectorPixelType = itk::VariableLengthVector<ScalarType>

Definition at line 62 of file otbChannelSelectorFunctor.h.

Constructor & Destructor Documentation

◆ ChannelSelectorFunctor()

template<class TInputPixel >
otb::Function::ChannelSelectorFunctor< TInputPixel >::ChannelSelectorFunctor ( )
inlineprotected

◆ ~ChannelSelectorFunctor()

template<class TInputPixel >
otb::Function::ChannelSelectorFunctor< TInputPixel >::~ChannelSelectorFunctor ( )
protecteddefault

Destructor

Member Function Documentation

◆ CreateAnother()

template<class TInputPixel >
virtual::itk::LightObject::Pointer otb::Function::ChannelSelectorFunctor< TInputPixel >::CreateAnother ( void  ) const

◆ GetBlueChannelIndex()

template<class TInputPixel >
virtual unsigned int otb::Function::ChannelSelectorFunctor< TInputPixel >::GetBlueChannelIndex ( ) const
inlinevirtual

Only for backward compatibility but should not be used

Definition at line 211 of file otbChannelSelectorFunctor.h.

References otb::Function::ChannelSelectorFunctor< TInputPixel >::m_ChannelList.

◆ GetChannelIndex()

template<class TInputPixel >
virtual unsigned int otb::Function::ChannelSelectorFunctor< TInputPixel >::GetChannelIndex ( unsigned int  channelPosition) const
inlinevirtual

◆ GetChannelList()

template<class TInputPixel >
virtual std::vector<unsigned int> otb::Function::ChannelSelectorFunctor< TInputPixel >::GetChannelList ( ) const
inlinevirtual

◆ GetDescription()

template<class TInputPixel >
const char* otb::Function::ChannelSelectorFunctor< TInputPixel >::GetDescription ( ) const
inline

Definition at line 68 of file otbChannelSelectorFunctor.h.

◆ GetGreenChannelIndex()

template<class TInputPixel >
virtual unsigned int otb::Function::ChannelSelectorFunctor< TInputPixel >::GetGreenChannelIndex ( ) const
inlinevirtual

Only for backward compatibility but should not be used

Definition at line 207 of file otbChannelSelectorFunctor.h.

References otb::Function::ChannelSelectorFunctor< TInputPixel >::m_ChannelList.

◆ GetNameOfClass()

template<class TInputPixel >
virtual const char* otb::Function::ChannelSelectorFunctor< TInputPixel >::GetNameOfClass ( ) const
virtual

◆ GetOutputSize()

template<class TInputPixel >
virtual unsigned int otb::Function::ChannelSelectorFunctor< TInputPixel >::GetOutputSize ( ) const
inlinevirtual

◆ GetRedChannelIndex()

template<class TInputPixel >
virtual unsigned int otb::Function::ChannelSelectorFunctor< TInputPixel >::GetRedChannelIndex ( ) const
inlinevirtual

Only for backward compatibility but should not be used

Definition at line 203 of file otbChannelSelectorFunctor.h.

References otb::Function::ChannelSelectorFunctor< TInputPixel >::m_ChannelList.

◆ IsUsingDefaultParameters()

template<class TInputPixel >
virtual bool otb::Function::ChannelSelectorFunctor< TInputPixel >::IsUsingDefaultParameters ( )
inlinevirtual

Only for backward compatibility but should not be used

Definition at line 216 of file otbChannelSelectorFunctor.h.

References otb::Function::ChannelSelectorFunctor< TInputPixel >::usingDefaultParameters.

◆ New()

template<class TInputPixel >
static Pointer otb::Function::ChannelSelectorFunctor< TInputPixel >::New ( )
static

Method for creation through the object factory

◆ operator()() [1/4]

template<class TInputPixel >
virtual OutputPixelType otb::Function::ChannelSelectorFunctor< TInputPixel >::operator() ( const RGBAPixelType inPixel) const
inlinevirtual

◆ operator()() [2/4]

template<class TInputPixel >
virtual OutputPixelType otb::Function::ChannelSelectorFunctor< TInputPixel >::operator() ( const RGBPixelType inPixel) const
inlinevirtual

◆ operator()() [3/4]

template<class TInputPixel >
virtual OutputPixelType otb::Function::ChannelSelectorFunctor< TInputPixel >::operator() ( const VectorPixelType inPixel) const
inlinevirtual

◆ operator()() [4/4]

template<class TInputPixel >
virtual OutputPixelType otb::Function::ChannelSelectorFunctor< TInputPixel >::operator() ( ScalarType  inPixel) const
inlinevirtual

◆ SetAllChannels()

template<class TInputPixel >
virtual void otb::Function::ChannelSelectorFunctor< TInputPixel >::SetAllChannels ( unsigned int  channel)
inlinevirtual

◆ SetBlueChannelIndex()

template<class TInputPixel >
virtual void otb::Function::ChannelSelectorFunctor< TInputPixel >::SetBlueChannelIndex ( unsigned int  channel)
inlinevirtual

◆ SetChannelIndex()

template<class TInputPixel >
virtual void otb::Function::ChannelSelectorFunctor< TInputPixel >::SetChannelIndex ( unsigned int  channelPosition,
unsigned int  channel 
)
inlinevirtual

◆ SetChannelList()

template<class TInputPixel >
virtual void otb::Function::ChannelSelectorFunctor< TInputPixel >::SetChannelList ( std::vector< unsigned int >  channels)
inlinevirtual

◆ SetGreenChannelIndex()

template<class TInputPixel >
virtual void otb::Function::ChannelSelectorFunctor< TInputPixel >::SetGreenChannelIndex ( unsigned int  channel)
inlinevirtual

◆ SetRedChannelIndex()

template<class TInputPixel >
virtual void otb::Function::ChannelSelectorFunctor< TInputPixel >::SetRedChannelIndex ( unsigned int  channel)
inlinevirtual

Member Data Documentation

◆ m_ChannelList

template<class TInputPixel >
ChannelListType otb::Function::ChannelSelectorFunctor< TInputPixel >::m_ChannelList
private

◆ usingDefaultParameters

template<class TInputPixel >
bool otb::Function::ChannelSelectorFunctor< TInputPixel >::usingDefaultParameters
private

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