OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Attributes | 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 >:

Public Types

using InputInternalPixelType = typename itk::NumericTraits< InputPixelType >::ValueType
 
using InputPixelType = TInputPixelType
 
using InputPixelValueType = typename itk::NumericTraits< InputInternalPixelType >::ValueType
 
using OutputInternalPixelType = typename itk::NumericTraits< OutputPixelType >::ValueType
 
using OutputPixelType = TOutputPixelType
 
using OutputPixelValueType = typename itk::NumericTraits< OutputInternalPixelType >::ValueType
 
using Self = ConvertTypeFunctor
 
using ThresholdPixelValueType = std::common_type_t< InputPixelValueType, OutputPixelValueType >
 

Public Member Functions

 ConvertTypeFunctor ()=default
 
unsigned int GetOutputSize () const noexcept
 
void operator() (OutputPixelType &out, InputPixelType const &in) const
 
void SetInputComponents (unsigned int sizeIn)
 
void SetThresholds (OutputPixelValueType const &lowest, OutputPixelValueType const &highest) noexcept
 
 ~ConvertTypeFunctor ()=default
 

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
 

Private Member Functions

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

Private Attributes

unsigned int m_CompIn
 
unsigned int m_CompOut
 
ThresholdPixelValueType m_HighestB = common_highest<InputPixelValueType, OutputPixelValueType>()
 
ThresholdPixelValueType m_LowestB = common_lowest<InputPixelValueType, OutputPixelValueType>()
 
unsigned int m_Scal
 
OutputPixelValueType m_Zero {}
 

Detailed Description

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

Definition at line 40 of file otbConvertTypeFunctor.h.

Member Typedef Documentation

◆ InputInternalPixelType

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

Definition at line 47 of file otbConvertTypeFunctor.h.

◆ InputPixelType

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

Definition at line 43 of file otbConvertTypeFunctor.h.

◆ InputPixelValueType

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

Definition at line 50 of file otbConvertTypeFunctor.h.

◆ OutputInternalPixelType

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

Definition at line 48 of file otbConvertTypeFunctor.h.

◆ OutputPixelType

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

Definition at line 44 of file otbConvertTypeFunctor.h.

◆ OutputPixelValueType

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

Definition at line 51 of file otbConvertTypeFunctor.h.

◆ Self

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

Definition at line 45 of file otbConvertTypeFunctor.h.

◆ ThresholdPixelValueType

template<class TInputPixelType , class TOutputPixelType >
using otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::ThresholdPixelValueType = std::common_type_t<InputPixelValueType, OutputPixelValueType>

Definition at line 52 of file otbConvertTypeFunctor.h.

Constructor & Destructor Documentation

◆ ConvertTypeFunctor() [1/2]

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

◆ ~ConvertTypeFunctor()

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

◆ ConvertTypeFunctor() [2/2]

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

Member Function Documentation

◆ GetOutputSize()

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

Definition at line 94 of file otbConvertTypeFunctor.h.

◆ operator()()

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

Definition at line 107 of file otbConvertTypeFunctor.h.

◆ operator=()

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

◆ SetInputComponents()

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

Definition at line 63 of file otbConvertTypeFunctor.h.

◆ SetThresholds()

template<class TInputPixelType , class TOutputPixelType >
void otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::SetThresholds ( OutputPixelValueType const &  lowest,
OutputPixelValueType const &  highest 
)
inlinenoexcept

Definition at line 99 of file otbConvertTypeFunctor.h.

Member Data Documentation

◆ m_cInInternalPix

template<class TInputPixelType , class TOutputPixelType >
constexpr bool otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_cInInternalPix = boost::is_complex<InputInternalPixelType>::value
staticconstexpr

◆ m_cInPix

template<class TInputPixelType , class TOutputPixelType >
constexpr bool otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_cInPix = boost::is_complex<InputPixelType>::value
staticconstexpr

◆ m_CompIn

template<class TInputPixelType , class TOutputPixelType >
unsigned int otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_CompIn
private

◆ m_CompOut

template<class TInputPixelType , class TOutputPixelType >
unsigned int otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_CompOut
private

◆ m_cOutInternalPix

template<class TInputPixelType , class TOutputPixelType >
constexpr bool otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_cOutInternalPix = boost::is_complex<OutputInternalPixelType>::value
staticconstexpr

◆ m_cOutPix

template<class TInputPixelType , class TOutputPixelType >
constexpr bool otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_cOutPix = boost::is_complex<OutputPixelType>::value
staticconstexpr

◆ m_HighestB

template<class TInputPixelType , class TOutputPixelType >
ThresholdPixelValueType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_HighestB = common_highest<InputPixelValueType, OutputPixelValueType>()
private

◆ m_LowestB

template<class TInputPixelType , class TOutputPixelType >
ThresholdPixelValueType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_LowestB = common_lowest<InputPixelValueType, OutputPixelValueType>()
private

◆ m_Scal

template<class TInputPixelType , class TOutputPixelType >
unsigned int otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_Scal
private

◆ m_Zero

template<class TInputPixelType , class TOutputPixelType >
OutputPixelValueType otb::Functor::ConvertTypeFunctor< TInputPixelType, TOutputPixelType >::m_Zero {}
private

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