OTB  6.7.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
< OutputValueType
OutputType
 
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 ()
 
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)
 
InternalPixelType m_SpectralThreshold
 
unsigned int m_SpatialThreshold
 
unsigned int m_RatioMaxConsiderationNumber
 
double m_Alpha
 
unsigned int m_NumberOfDirections
 
double m_DirectionStep
 
std::vector< bool > m_SelectedTextures
 
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

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

Definition at line 75 of file otbSFSTexturesFunctor.h.

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

Definition at line 73 of file otbSFSTexturesFunctor.h.

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

Definition at line 76 of file otbSFSTexturesFunctor.h.

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

Definition at line 78 of file otbSFSTexturesFunctor.h.

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

Definition at line 77 of file otbSFSTexturesFunctor.h.

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

Definition at line 74 of file otbSFSTexturesFunctor.h.

Constructor & Destructor Documentation

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

Definition at line 62 of file otbSFSTexturesFunctor.h.

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

Definition at line 71 of file otbSFSTexturesFunctor.h.

Member Function Documentation

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
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 335 of file otbSFSTexturesFunctor.h.

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

template<class TIter, class TOutputValue>
double otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::ComputeSDi ( const TIter &  it,
const OffsetType stopOffset 
)
inline
template<class TIter, class TOutputValue>
int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::ComputeStep ( const int &  stopOffset)
inline
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 237 of file otbSFSTexturesFunctor.h.

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

template<class TIter, class TOutputValue>
virtual double otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetAlpha ( )
virtual
template<class TIter, class TOutputValue>
virtual unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetNumberOfDirections ( )
virtual
template<class TIter, class TOutputValue>
virtual unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetRatioMaxConsiderationNumber ( )
virtual
template<class TIter, class TOutputValue>
virtual unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetSpatialThreshold ( )
virtual
template<class TIter, class TOutputValue>
virtual InternalPixelType otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetSpectralThreshold ( )
virtual
template<class TIter, class TOutputValue>
std::vector<bool> otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::GetTexturesStatus ( )
inline

Definition at line 104 of file otbSFSTexturesFunctor.h.

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

Definition at line 106 of file otbSFSTexturesFunctor.h.

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

Definition at line 83 of file otbSFSTexturesFunctor.h.

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

Definition at line 89 of file otbSFSTexturesFunctor.h.

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

Definition at line 82 of file otbSFSTexturesFunctor.h.

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

Definition at line 90 of file otbSFSTexturesFunctor.h.

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

Definition at line 80 of file otbSFSTexturesFunctor.h.

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

Definition at line 81 of file otbSFSTexturesFunctor.h.

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

Definition at line 95 of file otbSFSTexturesFunctor.h.

Member Data Documentation

template<class TIter, class TOutputValue>
double otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_Alpha
protected
template<class TIter, class TOutputValue>
double otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_DirectionStep
protected
template<class TIter, class TOutputValue>
unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_NumberOfDirections
protected
template<class TIter, class TOutputValue>
unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_RatioMaxConsiderationNumber
protected
template<class TIter, class TOutputValue>
std::vector<bool> otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_SelectedTextures
protected
template<class TIter, class TOutputValue>
unsigned int otb::Functor::SFSTexturesFunctor< TIter, TOutputValue >::m_SpatialThreshold
protected
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: