OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType > Class Template Reference

#include <otbConvertTypeFunctor.h>

+ Inheritance diagram for otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >:
+ Collaboration diagram for otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >:

Public Types

typedef itk::NumericTraits
< InputPixelType >::ValueType 
InputInternalPixelType
 
typedef TInputPixelType InputPixelType
 
typedef itk::NumericTraits
< InputInternalPixelType >
::ValueType 
InputPixelValueType
 
typedef itk::NumericTraits
< OutputPixelType >::ValueType 
OutputInternalPixelType
 
typedef TOutputPixelType OutputPixelType
 
typedef itk::NumericTraits
< OutputInternalPixelType >
::ValueType 
OutputPixelValueType
 
typedef ConvertTypeFunctor Self
 

Public Member Functions

 ConvertTypeFunctor ()
 
unsigned int GetOutputSize ()
 
OutputPixelType operator() (InputPixelType const &in) const
 
void SetHighest (OutputPixelValueType &highest)
 
void SetInputComponents (unsigned int sizeIn)
 
void SetLowest (OutputPixelValueType &lowest)
 
 ~ConvertTypeFunctor ()
 

Static Public Attributes

static constexpr bool m_cInInternalPix = boost::is_complex < InputInternalPixelType > :: value
 
static constexpr bool m_cInPix = boost::is_complex < InputPixelType > :: value
 
static constexpr bool m_cOutInternalPix = boost::is_complex < OutputInternalPixelType > :: value
 
static constexpr bool m_cOutPix = boost::is_complex < OutputPixelType > :: value
 

Protected Member Functions

void Clamp (std::vector< double > &vPixel) const
 
template<class PixelType , std::enable_if_t< std::is_arithmetic< PixelType >::value, int > = 0>
void FillIn (unsigned int i, InputPixelType const &pix, std::vector< double > &vPix) const
 
template<class PixelType , std::enable_if_t< boost::is_complex< PixelType >::value, int > = 0>
void FillIn (unsigned int i, InputPixelType const &pix, std::vector< double > &vPix) const
 
template<class PixelType , std::enable_if_t< !(boost::is_complex< PixelType >::value||std::is_arithmetic< PixelType >::value), int > = 0>
void FillIn (unsigned int i, InputPixelType const &pix, std::vector< double > &vPix) const
 
template<class PixelType , std::enable_if_t< std::is_arithmetic< PixelType >::value, int > = 0>
void FillOut (unsigned int i, OutputPixelType &pix, std::vector< double > &vPix) const
 
template<class PixelType , std::enable_if_t< boost::is_complex< PixelType >::value, int > = 0>
void FillOut (unsigned int i, OutputPixelType &pix, std::vector< double > &vPix) const
 
template<class PixelType , std::enable_if_t< !(boost::is_complex< PixelType >::value||std::is_arithmetic< PixelType >::value), int > = 0>
void FillOut (unsigned int i, OutputPixelType &pix, std::vector< double > &vPix) const
 

Private Member Functions

 ConvertTypeFunctor (const Self &)=delete
 
void operator= (const Self &)=delete
 

Private Attributes

unsigned int m_CompIn
 
unsigned int m_CompOut
 
OutputPixelValueType m_HighestB
 
double m_HighestBD
 
OutputPixelValueType m_LowestB
 
double m_LowestBD
 
unsigned int m_Scal
 

Detailed Description

template<class TInputPixelType, class TOutputPixelType>
class otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >

Definition at line 38 of file otbConvertTypeFunctor.h.

Member Typedef Documentation

template<class TInputPixelType, class TOutputPixelType>
typedef itk::NumericTraits< InputPixelType >:: ValueType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::InputInternalPixelType

Definition at line 45 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
typedef TInputPixelType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::InputPixelType

Definition at line 41 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
typedef itk::NumericTraits< InputInternalPixelType >:: ValueType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::InputPixelValueType

Definition at line 48 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
typedef itk::NumericTraits< OutputPixelType >:: ValueType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::OutputInternalPixelType

Definition at line 46 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
typedef TOutputPixelType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::OutputPixelType

Definition at line 42 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
typedef itk::NumericTraits< OutputInternalPixelType >:: ValueType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::OutputPixelValueType

Definition at line 49 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
typedef ConvertTypeFunctor otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::Self

Definition at line 43 of file otbConvertTypeFunctor.h.

Constructor & Destructor Documentation

template<class TInputPixelType, class TOutputPixelType>
otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::ConvertTypeFunctor ( )
inline

Definition at line 56 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::~ConvertTypeFunctor ( )
inline

Definition at line 150 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::ConvertTypeFunctor ( const Self )
privatedelete

Member Function Documentation

template<class TInputPixelType, class TOutputPixelType>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::Clamp ( std::vector< double > &  vPixel) const
inlineprotected
template<class TInputPixelType, class TOutputPixelType>
template<class PixelType , std::enable_if_t< std::is_arithmetic< PixelType >::value, int > = 0>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::FillIn ( unsigned int  i,
InputPixelType const &  pix,
std::vector< double > &  vPix 
) const
inlineprotected

Definition at line 156 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
template<class PixelType , std::enable_if_t< boost::is_complex< PixelType >::value, int > = 0>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::FillIn ( unsigned int  i,
InputPixelType const &  pix,
std::vector< double > &  vPix 
) const
inlineprotected

Definition at line 166 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
template<class PixelType , std::enable_if_t< !(boost::is_complex< PixelType >::value||std::is_arithmetic< PixelType >::value), int > = 0>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::FillIn ( unsigned int  i,
InputPixelType const &  pix,
std::vector< double > &  vPix 
) const
inlineprotected

Definition at line 179 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
template<class PixelType , std::enable_if_t< std::is_arithmetic< PixelType >::value, int > = 0>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::FillOut ( unsigned int  i,
OutputPixelType pix,
std::vector< double > &  vPix 
) const
inlineprotected

Definition at line 199 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
template<class PixelType , std::enable_if_t< boost::is_complex< PixelType >::value, int > = 0>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::FillOut ( unsigned int  i,
OutputPixelType pix,
std::vector< double > &  vPix 
) const
inlineprotected

Definition at line 209 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
template<class PixelType , std::enable_if_t< !(boost::is_complex< PixelType >::value||std::is_arithmetic< PixelType >::value), int > = 0>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::FillOut ( unsigned int  i,
OutputPixelType pix,
std::vector< double > &  vPix 
) const
inlineprotected

Definition at line 221 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
unsigned int otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::GetOutputSize ( )
inline

Definition at line 86 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
OutputPixelType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::operator() ( InputPixelType const &  in) const
inline

Definition at line 125 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::operator= ( const Self )
privatedelete
template<class TInputPixelType, class TOutputPixelType>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::SetHighest ( OutputPixelValueType highest)
inline

Definition at line 119 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::SetInputComponents ( unsigned int  sizeIn)
inline

Definition at line 75 of file otbConvertTypeFunctor.h.

template<class TInputPixelType, class TOutputPixelType>
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::SetLowest ( OutputPixelValueType lowest)
inline

Definition at line 113 of file otbConvertTypeFunctor.h.

Member Data Documentation

template<class TInputPixelType, class TOutputPixelType>
constexpr bool otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_cInInternalPix = boost::is_complex < InputInternalPixelType > :: value
static
template<class TInputPixelType, class TOutputPixelType>
constexpr bool otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_cInPix = boost::is_complex < InputPixelType > :: value
static
template<class TInputPixelType, class TOutputPixelType>
unsigned int otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_CompIn
private
template<class TInputPixelType, class TOutputPixelType>
unsigned int otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_CompOut
private
template<class TInputPixelType, class TOutputPixelType>
constexpr bool otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_cOutInternalPix = boost::is_complex < OutputInternalPixelType > :: value
static
template<class TInputPixelType, class TOutputPixelType>
constexpr bool otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_cOutPix = boost::is_complex < OutputPixelType > :: value
static
template<class TInputPixelType, class TOutputPixelType>
OutputPixelValueType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_HighestB
private
template<class TInputPixelType, class TOutputPixelType>
double otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_HighestBD
private
template<class TInputPixelType, class TOutputPixelType>
OutputPixelValueType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_LowestB
private
template<class TInputPixelType, class TOutputPixelType>
double otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_LowestBD
private
template<class TInputPixelType, class TOutputPixelType>
unsigned int otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_Scal
private

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