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

#include <otbChangeLabelImageFilter.h>

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

Public Types

typedef std::map< InputPixelType, OutputPixelTypeChangeMapType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef TInputImage::PixelType InputPixelType
 
typedef TOutputImage::PixelType OutputPixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ChangeLabelImageFilter Self
 
typedef itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::VectorChangeLabel< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
void SetChange (const InputPixelType &original, const OutputPixelType &result)
 
void SetChangeMap (const ChangeMapType &changeMap)
 
void ClearChangeMap ()
 

Static Public Member Functions

static Pointer New ()
 
unsigned int m_NumberOfComponentsPerPixel
 
void SetNumberOfComponentsPerPixel (unsigned int nb)
 
virtual unsigned int GetNumberOfComponentsPerPixel ()
 
 ChangeLabelImageFilter ()
 
 ~ChangeLabelImageFilter () override
 
void GenerateOutputInformation () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ChangeLabelImageFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

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

Change Sets of Labels.

Adapt the itkChangeLabelImageFilter for multichannel images.

Definition at line 124 of file otbChangeLabelImageFilter.h.

Member Typedef Documentation

◆ ChangeMapType

template<class TInputImage , class TOutputImage >
typedef std::map<InputPixelType, OutputPixelType> otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::ChangeMapType

Type of the change map to use for change requests

Definition at line 147 of file otbChangeLabelImageFilter.h.

◆ ConstPointer

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

Definition at line 134 of file otbChangeLabelImageFilter.h.

◆ InputPixelType

template<class TInputImage , class TOutputImage >
typedef TInputImage::PixelType otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::InputPixelType

Pixel types.

Definition at line 140 of file otbChangeLabelImageFilter.h.

◆ OutputPixelType

template<class TInputImage , class TOutputImage >
typedef TOutputImage::PixelType otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::OutputPixelType

Definition at line 144 of file otbChangeLabelImageFilter.h.

◆ Pointer

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

Definition at line 133 of file otbChangeLabelImageFilter.h.

◆ Self

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

Standard class typedefs.

Definition at line 130 of file otbChangeLabelImageFilter.h.

◆ Superclass

template<class TInputImage , class TOutputImage >
typedef itk::UnaryFunctorImageFilter<TInputImage, TOutputImage, Functor::VectorChangeLabel<typename TInputImage::PixelType, typename TOutputImage::PixelType> > otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::Superclass

Definition at line 132 of file otbChangeLabelImageFilter.h.

Constructor & Destructor Documentation

◆ ChangeLabelImageFilter() [1/2]

template<class TInputImage , class TOutputImage >
otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::ChangeLabelImageFilter
protected

Number of components per pixel.

Definition at line 33 of file otbChangeLabelImageFilter.hxx.

◆ ~ChangeLabelImageFilter()

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

Number of components per pixel.

Definition at line 170 of file otbChangeLabelImageFilter.h.

◆ ChangeLabelImageFilter() [2/2]

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

Number of components per pixel.

Member Function Documentation

◆ ClearChangeMap()

template<class TInputImage , class TOutputImage >
void otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::ClearChangeMap

Clears the entire change map

Definition at line 68 of file otbChangeLabelImageFilter.hxx.

◆ CreateAnother()

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

◆ GenerateOutputInformation()

template<class TInputImage , class TOutputImage >
void otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::GenerateOutputInformation
overrideprotected

Generate the output information missing

Definition at line 80 of file otbChangeLabelImageFilter.hxx.

◆ GetNameOfClass()

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

Run-time type information (and related methods).

◆ GetNumberOfComponentsPerPixel()

template<class TInputImage , class TOutputImage >
virtual unsigned int otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::GetNumberOfComponentsPerPixel ( )
virtual

Number of components per pixel.

◆ New()

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

Method for creation through the object factory.

◆ operator=()

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

Number of components per pixel.

◆ PrintSelf()

template<class TInputImage , class TOutputImage >
void otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

Number of components per pixel.

Definition at line 91 of file otbChangeLabelImageFilter.hxx.

◆ SetChange()

template<class TInputImage , class TOutputImage >
void otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::SetChange ( const InputPixelType original,
const OutputPixelType result 
)

Set up a change of a single label

Definition at line 41 of file otbChangeLabelImageFilter.hxx.

◆ SetChangeMap()

template<class TInputImage , class TOutputImage >
void otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::SetChangeMap ( const ChangeMapType changeMap)

Set the entire change map

Definition at line 56 of file otbChangeLabelImageFilter.hxx.

◆ SetNumberOfComponentsPerPixel()

template<class TInputImage , class TOutputImage >
void otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::SetNumberOfComponentsPerPixel ( unsigned int  nb)
inline

Set/Get the number of components per pixel

Definition at line 159 of file otbChangeLabelImageFilter.h.

Member Data Documentation

◆ m_NumberOfComponentsPerPixel

template<class TInputImage , class TOutputImage >
unsigned int otb::ChangeLabelImageFilter< TInputImage, TOutputImage >::m_NumberOfComponentsPerPixel
private

Number of components per pixel.

Definition at line 183 of file otbChangeLabelImageFilter.h.


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