OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | List of all members
otb::Functor::SFSTexturesFunctor< TIter, TOutputValue > Class Template Reference

#include <otbSFSTexturesFunctor.h>

+ Inheritance diagram for otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >:
+ Collaboration diagram for otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >:

Public Types

typedef TIter::IndexType IndexType
 
typedef TIter::InternalPixelType InternalPixelType
 
typedef TIter::OffsetType OffsetType
 
typedef std::vector< OutputValueTypeOutputType
 
typedef TOutputValue OutputValueType
 
typedef TIter::SizeType SizeType
 

Public Member Functions

virtual double GetAlpha ()
 
virtual unsigned int GetNumberOfDirections ()
 
virtual unsigned int GetRatioMaxConsiderationNumber ()
 
virtual unsigned int GetSpatialThreshold ()
 
virtual InternalPixelType GetSpectralThreshold ()
 
std::vector< bool > GetTexturesStatus ()
 
OutputType operator() (const TIter &it)
 
void SetAlpha (double alpha)
 
void SetDirectionStep (double step)
 
void SetNumberOfDirections (unsigned int D)
 
void SetRatioMaxConsiderationNumber (unsigned int value)
 
void SetSelectedTextures (std::vector< bool > &vect)
 
void SetSpatialThreshold (unsigned int thresh)
 
void SetSpectralThreshold (InternalPixelType thresh)
 
void SetTextureStatus (unsigned int id, bool isSelected)
 
 SFSTexturesFunctor ()
 
virtual ~SFSTexturesFunctor ()
 
unsigned int m_SpatialThreshold
 
InternalPixelType m_SpectralThreshold
 
unsigned int m_RatioMaxConsiderationNumber
 
double m_Alpha
 
unsigned int m_NumberOfDirections
 
double m_DirectionStep
 
std::vector< bool > m_SelectedTextures
 
OffsetType FindLastOffset (const TIter &it, const OffsetType &stopOffset)
 
double ComputeSDi (const TIter &it, const OffsetType &stopOffset)
 
bool CheckIsInside (const int &signX, const int &signY, const OffsetType &currentOff, const OffsetType &stopOffset)
 
void ComputePointLine (OffsetType &currentOff, const double &slop, const int &signY, const int &stopOffsetX)
 
int ComputeStep (const int &stopOffset)
 

Detailed Description

template<class TIter, class TOutputValue>
class otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >

Definition at line 59 of file otbSFSTexturesFunctor.h.

Member Typedef Documentation

◆ IndexType

template<class TIter , class TOutputValue >
typedef TIter::IndexType otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::IndexType

Definition at line 79 of file otbSFSTexturesFunctor.h.

◆ InternalPixelType

template<class TIter , class TOutputValue >
typedef TIter::InternalPixelType otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::InternalPixelType

Definition at line 77 of file otbSFSTexturesFunctor.h.

◆ OffsetType

template<class TIter , class TOutputValue >
typedef TIter::OffsetType otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::OffsetType

Definition at line 80 of file otbSFSTexturesFunctor.h.

◆ OutputType

template<class TIter , class TOutputValue >
typedef std::vector<OutputValueType> otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::OutputType

Definition at line 82 of file otbSFSTexturesFunctor.h.

◆ OutputValueType

template<class TIter , class TOutputValue >
typedef TOutputValue otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::OutputValueType

Definition at line 81 of file otbSFSTexturesFunctor.h.

◆ SizeType

template<class TIter , class TOutputValue >
typedef TIter::SizeType otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SizeType

Definition at line 78 of file otbSFSTexturesFunctor.h.

Constructor & Destructor Documentation

◆ SFSTexturesFunctor()

template<class TIter , class TOutputValue >
otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SFSTexturesFunctor ( )
inline

Definition at line 62 of file otbSFSTexturesFunctor.h.

◆ ~SFSTexturesFunctor()

template<class TIter , class TOutputValue >
virtual otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::~SFSTexturesFunctor ( )
inlinevirtual

Definition at line 73 of file otbSFSTexturesFunctor.h.

Member Function Documentation

◆ CheckIsInside()

template<class TIter , class TOutputValue >
bool otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::CheckIsInside ( const int &  signX,
const int &  signY,
const OffsetType currentOff,
const OffsetType stopOffset 
)
inline

◆ ComputePointLine()

template<class TIter , class TOutputValue >
void otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::ComputePointLine ( OffsetType currentOff,
const double &  slop,
const int &  signY,
const int &  stopOffsetX 
)
inline

Compute the y coordinate according to a given x coordinate. Use the Bresenham algo if the line is not horizontal (stopOffsetX==0). Otherwise, it increments of 1 Y.

Definition at line 381 of file otbSFSTexturesFunctor.h.

Referenced by otb::Functor::SFSTexturesFunctor< NeighborhoodIteratorType, OutputImagePixelType >::ComputeSDi(), and otb::Functor::SFSTexturesFunctor< NeighborhoodIteratorType, OutputImagePixelType >::FindLastOffset().

◆ ComputeSDi()

template<class TIter , class TOutputValue >
double otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::ComputeSDi ( const TIter &  it,
const OffsetType stopOffset 
)
inline

◆ ComputeStep()

template<class TIter , class TOutputValue >
int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::ComputeStep ( const int &  stopOffset)
inline

◆ FindLastOffset()

template<class TIter , class TOutputValue >
OffsetType otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::FindLastOffset ( const TIter &  it,
const OffsetType stopOffset 
)
inline

Checks spectral threshold condition the last point in the directiuon is the first that doesn't respect the spectral condition.

Definition at line 275 of file otbSFSTexturesFunctor.h.

Referenced by otb::Functor::SFSTexturesFunctor< NeighborhoodIteratorType, OutputImagePixelType >::operator()().

◆ GetAlpha()

template<class TIter , class TOutputValue >
virtual double otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetAlpha ( )
virtual

◆ GetNumberOfDirections()

template<class TIter , class TOutputValue >
virtual unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetNumberOfDirections ( )
virtual

◆ GetRatioMaxConsiderationNumber()

template<class TIter , class TOutputValue >
virtual unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetRatioMaxConsiderationNumber ( )
virtual

◆ GetSpatialThreshold()

template<class TIter , class TOutputValue >
virtual unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetSpatialThreshold ( )
virtual

◆ GetSpectralThreshold()

template<class TIter , class TOutputValue >
virtual InternalPixelType otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetSpectralThreshold ( )
virtual

◆ GetTexturesStatus()

template<class TIter , class TOutputValue >
std::vector<bool> otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetTexturesStatus ( )
inline

Definition at line 126 of file otbSFSTexturesFunctor.h.

◆ operator()()

template<class TIter , class TOutputValue >
OutputType otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::operator() ( const TIter &  it)
inline

Definition at line 131 of file otbSFSTexturesFunctor.h.

◆ SetAlpha()

template<class TIter , class TOutputValue >
void otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SetAlpha ( double  alpha)
inline

Definition at line 96 of file otbSFSTexturesFunctor.h.

◆ SetDirectionStep()

template<class TIter , class TOutputValue >
void otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SetDirectionStep ( double  step)
inline

Definition at line 105 of file otbSFSTexturesFunctor.h.

◆ SetNumberOfDirections()

template<class TIter , class TOutputValue >
void otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SetNumberOfDirections ( unsigned int  D)
inline

◆ SetRatioMaxConsiderationNumber()

template<class TIter , class TOutputValue >
void otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SetRatioMaxConsiderationNumber ( unsigned int  value)
inline

Definition at line 92 of file otbSFSTexturesFunctor.h.

◆ SetSelectedTextures()

template<class TIter , class TOutputValue >
void otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SetSelectedTextures ( std::vector< bool > &  vect)
inline

Definition at line 109 of file otbSFSTexturesFunctor.h.

◆ SetSpatialThreshold()

template<class TIter , class TOutputValue >
void otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SetSpatialThreshold ( unsigned int  thresh)
inline

Definition at line 84 of file otbSFSTexturesFunctor.h.

◆ SetSpectralThreshold()

template<class TIter , class TOutputValue >
void otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SetSpectralThreshold ( InternalPixelType  thresh)
inline

Definition at line 88 of file otbSFSTexturesFunctor.h.

◆ SetTextureStatus()

template<class TIter , class TOutputValue >
void otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::SetTextureStatus ( unsigned int  id,
bool  isSelected 
)
inline

Definition at line 114 of file otbSFSTexturesFunctor.h.

Member Data Documentation

◆ m_Alpha

template<class TIter , class TOutputValue >
double otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_Alpha
protected

◆ m_DirectionStep

template<class TIter , class TOutputValue >
double otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_DirectionStep
protected

◆ m_NumberOfDirections

template<class TIter , class TOutputValue >
unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_NumberOfDirections
protected

◆ m_RatioMaxConsiderationNumber

template<class TIter , class TOutputValue >
unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_RatioMaxConsiderationNumber
protected

◆ m_SelectedTextures

template<class TIter , class TOutputValue >
std::vector<bool> otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_SelectedTextures
protected

◆ m_SpatialThreshold

template<class TIter , class TOutputValue >
unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_SpatialThreshold
protected

◆ m_SpectralThreshold

template<class TIter , class TOutputValue >
InternalPixelType otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_SpectralThreshold
protected

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