Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::SFSTexturesImageFilter< TInputImage, TOutputImage > Class Template Reference

This functor computes the texture describes in the following publication It is based on line direction estimation. More...

#include <otbSFSTexturesImageFilter.h>

+ Inheritance diagram for otb::SFSTexturesImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for otb::SFSTexturesImageFilter< TInputImage, TOutputImage >:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
enum  FeatureType {
  LENGTH = 1,
  WIDTH,
  PSI,
  WMEAN,
  RATIO,
  SD
}
 
typedef FunctorType::OutputType FunctorOutputType
 
typedef
Functor::SFSTexturesFunctor
< NeighborhoodIteratorType,
OutputImagePixelType
FunctorType
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef
InputImageType::ConstPointer 
InputImagePointerType
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef InputImageType::SizeType InputImageSizeType
 
typedef TInputImage InputImageType
 
typedef
itk::ConstNeighborhoodIterator
< TInputImage > 
NeighborhoodIteratorType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointerType
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef TOutputImage OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::ProcessObject ProcessObjectType
 
typedef
NeighborhoodIteratorType::RadiusType 
RadiusType
 
typedef SFSTexturesImageFilter Self
 
typedef
itk::ImageToImageFilter
< TInputImage, TOutputImage > 
Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual void GenerateOutputInformation ()
 
double GetAlpha ()
 
FunctorTypeGetFunctor ()
 
const FunctorTypeGetFunctor () const
 
const OutputImageTypeGetLengthOutput () const
 
OutputImageTypeGetLengthOutput ()
 
virtual const char * GetNameOfClass () const
 
unsigned int GetNumberOfDirections ()
 
const OutputImageTypeGetPSIOutput () const
 
OutputImageTypeGetPSIOutput ()
 
virtual unsigned int GetRadius ()
 
unsigned int GetRatioMaxConsiderationNumber ()
 
const OutputImageTypeGetRatioOutput () const
 
OutputImageTypeGetRatioOutput ()
 
const OutputImageTypeGetSDOutput () const
 
OutputImageTypeGetSDOutput ()
 
unsigned int GetSpatialThreshold ()
 
InputImagePixelType GetSpectralThreshold ()
 
std::vector< bool > GetTexturesStatus ()
 
const OutputImageTypeGetWidthOutput () const
 
OutputImageTypeGetWidthOutput ()
 
const OutputImageTypeGetWMeanOutput () const
 
OutputImageTypeGetWMeanOutput ()
 
void InitFeatureStatus (bool status)
 
void SetAlpha (double alpha)
 
void SetFeatureStatus (FeatureType id, bool isSelected)
 
void SetFunctor (const FunctorType &functor)
 
void SetNumberOfDirections (unsigned int D)
 
void SetRatioMaxConsiderationNumber (unsigned int value)
 
void SetSpatialThreshold (unsigned int thresh)
 
void SetSpectralThreshold (InputImagePixelType thresh)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageSource< TOutputImage >
static const
ImageRegionSplitterBase
GetGlobalDefaultSplitter (void)
 

Public Attributes

std::vector< FunctorTypem_FunctorList
 

Protected Member Functions

 SFSTexturesImageFilter ()
 
virtual ~SFSTexturesImageFilter ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual void GenerateInputRequestedRegion (void)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId)
 

Private Member Functions

 SFSTexturesImageFilter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

FunctorType m_Functor
 
unsigned int m_Radius
 

Detailed Description

template<class TInputImage, class TOutputImage>
class otb::SFSTexturesImageFilter< TInputImage, TOutputImage >

This functor computes the texture describes in the following publication It is based on line direction estimation.

Please refer to Xin Huang, Liangpei Zhang and Pingxiang Li publication, Classification and Extraction of Spatial Features in Urban Areas Using High-Resolution Multispectral Imagery. IEEE Geoscience and Remote Sensing Letters, vol. 4, n. 2, 2007, pp 260-264

The texture is computated for each pixel using its neighborhood. User can set the spatial threshold that is the max line length, the spectral threshold that is the max difference authorized between a pixel of the line and the center pixel of the current neighborhood. Alpha and RatioMaxConsideration are used to compute the \( \omega \) - mean value. Finally, The number of direction can be precised with NumberOfDirections. You can choose the computed textures using SetTextureStatus method (1:length, 2:width, 3:PSI, 4:w-mean, 5:ratio, 6:SD).

See Also
SFSTexturesFunctor

Definition at line 53 of file otbSFSTexturesImageFilter.h.

Member Typedef Documentation

template<class TInputImage, class TOutputImage>
typedef itk::SmartPointer<const Self> otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::ConstPointer

Definition at line 63 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef FunctorType::OutputType otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::FunctorOutputType

Definition at line 82 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef Functor::SFSTexturesFunctor<NeighborhoodIteratorType, OutputImagePixelType> otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::FunctorType

Definition at line 81 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef InputImageType::PixelType otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::InputImagePixelType

Definition at line 74 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef InputImageType::ConstPointer otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::InputImagePointerType

Some convenient typedefs.

Definition at line 69 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef InputImageType::RegionType otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::InputImageRegionType

Definition at line 73 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef InputImageType::SizeType otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::InputImageSizeType

Definition at line 75 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef TInputImage otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::InputImageType

Definition at line 59 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef itk::ConstNeighborhoodIterator<TInputImage> otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::NeighborhoodIteratorType

Definition at line 79 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef OutputImageType::PixelType otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImagePixelType

Definition at line 78 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef OutputImageType::Pointer otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImagePointerType

Definition at line 76 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef OutputImageType::RegionType otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageRegionType

Definition at line 77 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef TOutputImage otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType

Definition at line 60 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef itk::SmartPointer<Self> otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::Pointer

Definition at line 62 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef itk::ProcessObject otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::ProcessObjectType

Definition at line 83 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef NeighborhoodIteratorType::RadiusType otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::RadiusType

Definition at line 80 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef SFSTexturesImageFilter otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::Self

Standard class typedefs.

Definition at line 58 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef itk::ImageToImageFilter<TInputImage, TOutputImage> otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::Superclass

Definition at line 61 of file otbSFSTexturesImageFilter.h.

Member Enumeration Documentation

template<class TInputImage, class TOutputImage>
enum otb::SFSTexturesImageFilter::FeatureType

Texture selection accessors 1: LENGTH 2: WIDTH 3: PSI 4: WMEAN 5: RATIO 6: SD Set to 1 means the texture will be computed.

Enumerator
LENGTH 
WIDTH 
PSI 
WMEAN 
RATIO 
SD 

Definition at line 165 of file otbSFSTexturesImageFilter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::SFSTexturesImageFilter ( )
protected

Definition at line 33 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage, class TOutputImage>
virtual otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::~SFSTexturesImageFilter ( )
inlineprotectedvirtual

Definition at line 216 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::SFSTexturesImageFilter ( const Self )
private

Member Function Documentation

template<class TInputImage , class TOutputImage >
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( void  )
protectedvirtual

Definition at line 253 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage, class TOutputImage>
virtual::itk::LightObject::Pointer otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::CreateAnother ( void  ) const
template<class TInputImage , class TOutputImage >
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( void  )
protectedvirtual
template<class TInputImage , class TOutputImage >
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GenerateOutputInformation ( void  )
virtual

Definition at line 330 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage, class TOutputImage>
double otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetAlpha ( void  )
inline

Definition at line 139 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
FunctorType& otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetFunctor ( void  )
inline

Functor accessors

Definition at line 89 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
const FunctorType& otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetFunctor ( void  ) const
inline

Definition at line 94 of file otbSFSTexturesImageFilter.h.

template<class TInputImage , class TOutputImage >
const SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetLengthOutput ( ) const

Return output length image

Definition at line 60 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage , class TOutputImage >
SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetLengthOutput ( )

Definition at line 75 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage, class TOutputImage>
virtual const char* otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage, class TOutputImage>
unsigned int otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetNumberOfDirections ( )
inline

Definition at line 151 of file otbSFSTexturesImageFilter.h.

template<class TInputImage , class TOutputImage >
const SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetPSIOutput ( ) const

Return output PSI image

Definition at line 124 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage , class TOutputImage >
SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetPSIOutput ( )

Definition at line 139 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage, class TOutputImage>
virtual unsigned int otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetRadius ( )
virtual

Set/Get the radius of neighborhood.

template<class TInputImage, class TOutputImage>
unsigned int otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetRatioMaxConsiderationNumber ( )
inline

Definition at line 129 of file otbSFSTexturesImageFilter.h.

template<class TInputImage , class TOutputImage >
const SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetRatioOutput ( ) const

Return output ratio image

Definition at line 189 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage , class TOutputImage >
SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetRatioOutput ( )

Definition at line 204 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage , class TOutputImage >
const SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetSDOutput ( ) const

Return output SD image

Definition at line 221 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage , class TOutputImage >
SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetSDOutput ( )

Definition at line 236 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage, class TOutputImage>
unsigned int otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetSpatialThreshold ( )
inline

Definition at line 111 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
InputImagePixelType otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetSpectralThreshold ( )
inline

Definition at line 120 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
std::vector<bool> otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetTexturesStatus ( )
inline

Definition at line 180 of file otbSFSTexturesImageFilter.h.

template<class TInputImage , class TOutputImage >
const SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetWidthOutput ( ) const

Return output width image

Definition at line 92 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage , class TOutputImage >
SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetWidthOutput ( )

Definition at line 107 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage , class TOutputImage >
const SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetWMeanOutput ( ) const

Return output WMean image

Definition at line 157 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage , class TOutputImage >
SFSTexturesImageFilter< TInputImage, TOutputImage >::OutputImageType * otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::GetWMeanOutput ( )

Definition at line 172 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage , class TOutputImage >
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::InitFeatureStatus ( bool  status)

Definition at line 425 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage, class TOutputImage>
static Pointer otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

template<class TInputImage, class TOutputImage>
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::operator= ( const Self )
private
template<class TInputImage , class TOutputImage >
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protected

Standard "PrintSelf" method

Definition at line 440 of file otbSFSTexturesImageFilter.txx.

template<class TInputImage, class TOutputImage>
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::SetAlpha ( double  alpha)
inline

Alpha accessor

Definition at line 135 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::SetFeatureStatus ( FeatureType  id,
bool  isSelected 
)
inline

Definition at line 167 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::SetFunctor ( const FunctorType functor)
inline

Definition at line 98 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::SetNumberOfDirections ( unsigned int  D)
inline

Number Of Directions

Definition at line 145 of file otbSFSTexturesImageFilter.h.

References otb::CONST_PI.

template<class TInputImage, class TOutputImage>
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::SetRatioMaxConsiderationNumber ( unsigned int  value)
inline

RatioMaxConsiderationNumber accessor

Definition at line 125 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::SetSpatialThreshold ( unsigned int  thresh)
inline

Spatial Threshold accessor

Definition at line 105 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::SetSpectralThreshold ( InputImagePixelType  thresh)
inline

Spectral Threshold accessor

Definition at line 116 of file otbSFSTexturesImageFilter.h.

template<class TInputImage , class TOutputImage >
void otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
itk::ThreadIdType  threadId 
)
protectedvirtual

Member Data Documentation

template<class TInputImage, class TOutputImage>
FunctorType otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::m_Functor
private

Definition at line 229 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
std::vector<FunctorType> otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::m_FunctorList

Definition at line 212 of file otbSFSTexturesImageFilter.h.

template<class TInputImage, class TOutputImage>
unsigned int otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::m_Radius
private

Definition at line 228 of file otbSFSTexturesImageFilter.h.


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