OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction > Class Template Reference

#include <otbUnaryFunctorVectorImageFilter.h>

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

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef UnaryFunctorVectorImageFilter Self
 
typedef itk::InPlaceImageFilter< TInputImage, TOutputImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 

Static Public Member Functions

static Pointer New ()
 
typedef TFunction FunctorType
 
typedef TInputImage InputImageType
 
typedef InputImageType::ConstPointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef TOutputImage OutputImageType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef itk::ProcessObject ProcessObjectType
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
FunctorType m_Functor
 
FunctorTypeGetFunctor ()
 
void SetFunctor (const FunctorType &functor)
 
 UnaryFunctorVectorImageFilter ()
 
 ~UnaryFunctorVectorImageFilter () override
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) override
 
void GenerateOutputInformation (void) override
 
 UnaryFunctorVectorImageFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TInputImage, class TOutputImage, class TFunction>
class otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >

Implements neighborhood-wise generic operation of one vector image.

This class is parameterized over the types of the input image and the type of the output image. It is also parameterized by the operation to be applied. A Functor style is used.

Definition at line 40 of file otbUnaryFunctorVectorImageFilter.h.

Member Typedef Documentation

◆ ConstPointer

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

Definition at line 47 of file otbUnaryFunctorVectorImageFilter.h.

◆ FunctorType

template<class TInputImage , class TOutputImage , class TFunction >
typedef TFunction otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::FunctorType

Some convenient typedefs.

Definition at line 61 of file otbUnaryFunctorVectorImageFilter.h.

◆ InputImagePixelType

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

Some convenient typedefs.

Definition at line 65 of file otbUnaryFunctorVectorImageFilter.h.

◆ InputImagePointer

template<class TInputImage , class TOutputImage , class TFunction >
typedef InputImageType::ConstPointer otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::InputImagePointer

Some convenient typedefs.

Definition at line 63 of file otbUnaryFunctorVectorImageFilter.h.

◆ InputImageRegionType

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

Some convenient typedefs.

Definition at line 64 of file otbUnaryFunctorVectorImageFilter.h.

◆ InputImageType

template<class TInputImage , class TOutputImage , class TFunction >
typedef TInputImage otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::InputImageType

Some convenient typedefs.

Definition at line 62 of file otbUnaryFunctorVectorImageFilter.h.

◆ OutputImagePixelType

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

Some convenient typedefs.

Definition at line 69 of file otbUnaryFunctorVectorImageFilter.h.

◆ OutputImagePointer

template<class TInputImage , class TOutputImage , class TFunction >
typedef OutputImageType::Pointer otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImagePointer

Some convenient typedefs.

Definition at line 67 of file otbUnaryFunctorVectorImageFilter.h.

◆ OutputImageRegionType

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

Some convenient typedefs.

Definition at line 68 of file otbUnaryFunctorVectorImageFilter.h.

◆ OutputImageType

template<class TInputImage , class TOutputImage , class TFunction >
typedef TOutputImage otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImageType

Some convenient typedefs.

Definition at line 66 of file otbUnaryFunctorVectorImageFilter.h.

◆ Pointer

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

Definition at line 46 of file otbUnaryFunctorVectorImageFilter.h.

◆ ProcessObjectType

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

Some convenient typedefs.

Definition at line 71 of file otbUnaryFunctorVectorImageFilter.h.

◆ Self

template<class TInputImage , class TOutputImage , class TFunction >
typedef UnaryFunctorVectorImageFilter otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::Self

Standard class typedefs.

Definition at line 44 of file otbUnaryFunctorVectorImageFilter.h.

◆ Superclass

template<class TInputImage , class TOutputImage , class TFunction >
typedef itk::InPlaceImageFilter<TInputImage, TOutputImage> otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::Superclass

Definition at line 45 of file otbUnaryFunctorVectorImageFilter.h.

Constructor & Destructor Documentation

◆ UnaryFunctorVectorImageFilter() [1/2]

template<class TInputImage , class TOutputImage , class TFunction >
otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::UnaryFunctorVectorImageFilter
protected

Constructor

Definition at line 35 of file otbUnaryFunctorVectorImageFilter.hxx.

◆ ~UnaryFunctorVectorImageFilter()

template<class TInputImage , class TOutputImage , class TFunction >
otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::~UnaryFunctorVectorImageFilter ( )
inlineoverrideprotected

Some convenient typedefs.

Definition at line 97 of file otbUnaryFunctorVectorImageFilter.h.

◆ UnaryFunctorVectorImageFilter() [2/2]

template<class TInputImage , class TOutputImage , class TFunction >
otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::UnaryFunctorVectorImageFilter ( const Self )
privatedelete

Some convenient typedefs.

Member Function Documentation

◆ CreateAnother()

template<class TInputImage , class TOutputImage , class TFunction >
virtual::itk::LightObject::Pointer otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::CreateAnother ( void  ) const

◆ GenerateOutputInformation()

template<class TInputImage , class TOutputImage , class TFunction >
void otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::GenerateOutputInformation ( void  )
overrideprotected

Since the number of components per pixel depends on the radius range, one must reimplement this method to set the proper number of component on the filter output.

Generate the output information

Definition at line 46 of file otbUnaryFunctorVectorImageFilter.hxx.

◆ GetFunctor()

template<class TInputImage , class TOutputImage , class TFunction >
FunctorType& otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::GetFunctor ( )
inline

Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer.)

Definition at line 77 of file otbUnaryFunctorVectorImageFilter.h.

◆ GetNameOfClass()

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

Run-time type information (and related methods).

◆ New()

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

Method for creation through the object factory.

◆ operator=()

template<class TInputImage , class TOutputImage , class TFunction >
void otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::operator= ( const Self )
privatedelete

Some convenient typedefs.

◆ SetFunctor()

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

Set the functor object. This replaces the current Functor with a copy of the specified Functor. This allows the user to specify a functor that has ivars set differently than the default functor. This method requires an operator!=() be defined on the functor (or the compiler's default implementation of operator!=() being appropriate).

Definition at line 88 of file otbUnaryFunctorVectorImageFilter.h.

◆ ThreadedGenerateData()

template<class TInputImage , class TOutputImage , class TFunction >
void otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
itk::ThreadIdType  threadId 
)
overrideprotected

UnaryFunctorVectorImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"

See also
ImageToImageFilter::ThreadedGenerateData(), ImageToImageFilter::GenerateData()

ThreadedGenerateData Performs the neighborhood-wise operation

Definition at line 57 of file otbUnaryFunctorVectorImageFilter.hxx.

Member Data Documentation

◆ InputImageDimension

template<class TInputImage , class TOutputImage , class TFunction >
const unsigned int otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::InputImageDimension = TInputImage::ImageDimension
static

Dimension

Definition at line 56 of file otbUnaryFunctorVectorImageFilter.h.

◆ m_Functor

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

Some convenient typedefs.

Definition at line 123 of file otbUnaryFunctorVectorImageFilter.h.

◆ OutputImageDimension

template<class TInputImage , class TOutputImage , class TFunction >
const unsigned int otb::UnaryFunctorVectorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImageDimension = TOutputImage::ImageDimension
static

Some convenient typedefs.

Definition at line 57 of file otbUnaryFunctorVectorImageFilter.h.


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