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

This filter removes (sets to null intensity) pixels isolated by direction. More...

#include <otbRemoveIsolatedByDirectionFilter.h>

+ Inheritance diagram for otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >:
+ Collaboration diagram for otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >:

Public Types

typedef
otb::BinaryFunctorNeighborhoodImageFilter
< TInputModulus,
TInputDirection, TOutputImage,
FunctorType
ComputingFilterType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef
Functor::RemoveIsolatedByDirectionFunctor
< typename
itk::ConstNeighborhoodIterator
< TInputModulus >, typename
itk::ConstNeighborhoodIterator
< TInputDirection >, typename
TOutputImage::PixelType > 
FunctorType
 
typedef itk::SmartPointer< SelfPointer
 
typedef
RemoveIsolatedByDirectionFilter 
Self
 
typedef
ModulusAndDirectionImageToImageFilter
< TInputModulus,
TInputDirection, TOutputImage > 
Superclass
 
- Public Types inherited from otb::ModulusAndDirectionImageToImageFilter< TInputModulus, TInputDirection, TOutputImage >
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef TInputDirection InputImageDirectionType
 
typedef Superclass::InputImageType InputImageType
 
typedef Superclass::OutputImageType OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef
ModulusAndDirectionImageToImageFilter 
Self
 
typedef
itk::ImageToImageFilter
< TInputModulus, TOutputImage > 
Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from otb::ModulusAndDirectionImageToImageFilter< TInputModulus, TInputDirection, TOutputImage >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
const InputImageTypeGetInput (void)
 
const InputImageDirectionTypeGetInputDirection (void)
 
virtual void SetInput (const InputImageType *input)
 
virtual void SetInputDirection (const InputImageDirectionType *direction)
 

Static Public Member Functions

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

Protected Member Functions

 RemoveIsolatedByDirectionFilter ()
 
virtual ~RemoveIsolatedByDirectionFilter ()
 
virtual void GenerateData (void)
 
virtual void PrintSelf (std::ostream &os, itk::Indent indent) const
 
- Protected Member Functions inherited from otb::ModulusAndDirectionImageToImageFilter< TInputModulus, TInputDirection, TOutputImage >
 ModulusAndDirectionImageToImageFilter ()
 
virtual ~ModulusAndDirectionImageToImageFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 

Private Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from otb::ModulusAndDirectionImageToImageFilter< TInputModulus, TInputDirection, TOutputImage >
static const unsigned int InputImageDimension
 
static const unsigned int OutputImageDimension
 

Detailed Description

template<class TInputModulus, class TInputDirection, class TOutputImage>
class otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >

This filter removes (sets to null intensity) pixels isolated by direction.

For a given pixel, the filter walk through its neighborhood in direction image, counting pixels having the same direction as the center pixel. If there is no such a pixel, the center pixel is considered to be isolated in direction, and thus will be removed (set to 0). If the pixel is not isolated in direction, the output value is the value of the pixel in the modulus image. Of course this filter requires the direction to be discrete, in order to be able to count the directions.

Examples:
FeatureExtraction/ExtractRoadByStepsExample.cxx.

Definition at line 76 of file otbRemoveIsolatedByDirectionFilter.h.

Member Typedef Documentation

template<class TInputModulus , class TInputDirection , class TOutputImage >
typedef otb::BinaryFunctorNeighborhoodImageFilter<TInputModulus, TInputDirection, TOutputImage, FunctorType> otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::ComputingFilterType

Definition at line 99 of file otbRemoveIsolatedByDirectionFilter.h.

template<class TInputModulus , class TInputDirection , class TOutputImage >
typedef itk::SmartPointer<const Self> otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::ConstPointer

Definition at line 84 of file otbRemoveIsolatedByDirectionFilter.h.

template<class TInputModulus , class TInputDirection , class TOutputImage >
typedef Functor::RemoveIsolatedByDirectionFunctor< typename itk::ConstNeighborhoodIterator<TInputModulus>, typename itk::ConstNeighborhoodIterator<TInputDirection>, typename TOutputImage::PixelType> otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::FunctorType

typedef of the computing filter (this allows us to derive from ModulusAndDirectionToImageFilter as well as using the BinaryFunctorNeighBorhoodImageFilter, which is appropriate here

Definition at line 90 of file otbRemoveIsolatedByDirectionFilter.h.

template<class TInputModulus , class TInputDirection , class TOutputImage >
typedef itk::SmartPointer<Self> otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::Pointer

Definition at line 83 of file otbRemoveIsolatedByDirectionFilter.h.

template<class TInputModulus , class TInputDirection , class TOutputImage >
typedef RemoveIsolatedByDirectionFilter otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::Self

Standard typedefs

Definition at line 81 of file otbRemoveIsolatedByDirectionFilter.h.

template<class TInputModulus , class TInputDirection , class TOutputImage >
typedef ModulusAndDirectionImageToImageFilter<TInputModulus, TInputDirection, TOutputImage> otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::Superclass

Definition at line 82 of file otbRemoveIsolatedByDirectionFilter.h.

Constructor & Destructor Documentation

template<class TInputModulus , class TInputDirection , class TOutputImage >
otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::RemoveIsolatedByDirectionFilter ( )
inlineprotected

Constructor

Definition at line 103 of file otbRemoveIsolatedByDirectionFilter.h.

template<class TInputModulus , class TInputDirection , class TOutputImage >
virtual otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::~RemoveIsolatedByDirectionFilter ( )
inlineprotectedvirtual

Destructor

Definition at line 105 of file otbRemoveIsolatedByDirectionFilter.h.

template<class TInputModulus , class TInputDirection , class TOutputImage >
otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::RemoveIsolatedByDirectionFilter ( const Self )
private

Member Function Documentation

template<class TInputModulus , class TInputDirection , class TOutputImage >
virtual::itk::LightObject::Pointer otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::CreateAnother ( void  ) const
template<class TInputModulus , class TInputDirection , class TOutputImage >
virtual void otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::GenerateData ( void  )
inlineprotectedvirtual

Main computation method

Definition at line 112 of file otbRemoveIsolatedByDirectionFilter.h.

template<class TInputModulus , class TInputDirection , class TOutputImage >
virtual const char* otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::GetNameOfClass ( ) const
virtual

Creation through object factory macro

Reimplemented from otb::ModulusAndDirectionImageToImageFilter< TInputModulus, TInputDirection, TOutputImage >.

template<class TInputModulus , class TInputDirection , class TOutputImage >
static Pointer otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::New ( )
static

Type macro

template<class TInputModulus , class TInputDirection , class TOutputImage >
void otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::operator= ( const Self )
private
template<class TInputModulus , class TInputDirection , class TOutputImage >
virtual void otb::RemoveIsolatedByDirectionFilter< TInputModulus, TInputDirection, TOutputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
inlineprotectedvirtual

PrintSelf method

Definition at line 107 of file otbRemoveIsolatedByDirectionFilter.h.


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