OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Private Attributes | List of all members
otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType > Class Template Reference

#include <otbShiftScaleImageAdaptor.h>

Public Types

typedef TExternalType ExternalType
 
typedef itk::NumericTraits< TPixelType >::RealType InternalType
 

Public Member Functions

const ExternalType Get (const InternalType &input) const
 
InternalType GetScale () const
 
InternalType GetShift () const
 
void Set (InternalType &output, const ExternalType &input)
 
void SetScale (InternalType value)
 
void SetShift (InternalType value)
 

Private Attributes

InternalType m_Scale
 
InternalType m_Shift
 

Detailed Description

template<class TPixelType, class TExternalType>
class otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >

Apply a shift scale operation to the value.

ShiftScalePixelAccessor shifts the input pixel by Shift and then scales the pixel by Scale. All computations are performed in the precision of the input pixel's RealType

ShiftScalePixelAccessor is templated over an internal type and an external type representation. This class cast the input applies the function to it and cast the result according to the types defined as template parameters

Definition at line 50 of file otbShiftScaleImageAdaptor.h.

Member Typedef Documentation

◆ ExternalType

template<class TPixelType , class TExternalType >
typedef TExternalType otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::ExternalType

External typedef. It defines the external aspect that this class will exhibit.

Definition at line 55 of file otbShiftScaleImageAdaptor.h.

◆ InternalType

template<class TPixelType , class TExternalType >
typedef itk::NumericTraits<TPixelType>::RealType otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::InternalType

Internal typedef. It defines the internal real representation of data.

Definition at line 59 of file otbShiftScaleImageAdaptor.h.

Member Function Documentation

◆ Get()

template<class TPixelType , class TExternalType >
const ExternalType otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::Get ( const InternalType input) const
inline

Definition at line 84 of file otbShiftScaleImageAdaptor.h.

◆ GetScale()

template<class TPixelType , class TExternalType >
InternalType otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::GetScale ( ) const
inline

Definition at line 70 of file otbShiftScaleImageAdaptor.h.

◆ GetShift()

template<class TPixelType , class TExternalType >
InternalType otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::GetShift ( ) const
inline

Definition at line 61 of file otbShiftScaleImageAdaptor.h.

◆ Set()

template<class TPixelType , class TExternalType >
void otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::Set ( InternalType output,
const ExternalType input 
)
inline

Definition at line 79 of file otbShiftScaleImageAdaptor.h.

◆ SetScale()

template<class TPixelType , class TExternalType >
void otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::SetScale ( InternalType  value)
inline

Definition at line 74 of file otbShiftScaleImageAdaptor.h.

◆ SetShift()

template<class TPixelType , class TExternalType >
void otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::SetShift ( InternalType  value)
inline

Definition at line 65 of file otbShiftScaleImageAdaptor.h.

Member Data Documentation

◆ m_Scale

template<class TPixelType , class TExternalType >
InternalType otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::m_Scale
private

Definition at line 91 of file otbShiftScaleImageAdaptor.h.

◆ m_Shift

template<class TPixelType , class TExternalType >
InternalType otb::Accessor::ShiftScalePixelAccessor< TPixelType, TExternalType >::m_Shift
private

Definition at line 90 of file otbShiftScaleImageAdaptor.h.


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