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

#include <otbLabelMapToAttributeImageFilter.h>

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

Public Types

typedef TAttributeAccessor AttributeAccessorType
 
typedef std::vector< std::string > AttributeListType
 
typedef LabelObjectType::AttributesMapType AttributesMapType
 
typedef AttributeAccessorType::AttributeValueType AttributeValueType
 
typedef LabelObjectType::ConstLineIterator ConstLineIteratorType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef OutputImageType::IndexType IndexType
 
typedef TInputImage InputImageType
 
typedef InputImageType::LabelObjectType LabelObjectType
 
typedef TOutputImage OutputImageType
 
typedef OutputImageType::InternalPixelType OutputInternalPixelType
 
typedef OutputImageType::PixelType OutputPixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef LabelMapToAttributeImageFilter Self
 
typedef itk::LabelMapFilter< TInputImage, TOutputImage > Superclass
 
typedef itk::VariableLengthVector< OutputInternalPixelTypeVectorPixelType
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual OutputInternalPixelType GetBackgroundValue () const
 
const AttributeListTypeGetChosenAttributes ()
 
virtual const char * GetNameOfClass () const
 
bool SetAttributeForNthChannel (unsigned int channel, const std::string &attribute)
 
virtual void SetBackgroundValue (OutputInternalPixelType _arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ~LabelMapToAttributeImageFilter () override
 

Private Attributes

OutputInternalPixelType m_BackgroundValue
 
AttributeListType m_ChosenAttributes
 
void SetChosenAttributes (AttributeListType &newAttributes)
 
unsigned int GetNumberOfComponentsPerPixel ()
 
bool SetAttributeForNthChannel (unsigned int channel, const char *attribute)
 
 LabelMapToAttributeImageFilter ()
 
void GenerateOutputInformation () override
 
void BeforeThreadedGenerateData () override
 
void ThreadedProcessLabelObject (LabelObjectType *labelObject) override
 

Detailed Description

template<class TInputImage, class TOutputImage, class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
class otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >

This class produces an image from attributes in a label map.

This filter is intended to work on AttributesMapLabelObject. The user chooses the attributes to display for each channel. The output image is expected to be a vector image.

Definition at line 44 of file otbLabelMapToAttributeImageFilter.h.

Member Typedef Documentation

◆ AttributeAccessorType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef TAttributeAccessor otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::AttributeAccessorType

Definition at line 72 of file otbLabelMapToAttributeImageFilter.h.

◆ AttributeListType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef std::vector<std::string> otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::AttributeListType

Definition at line 71 of file otbLabelMapToAttributeImageFilter.h.

◆ AttributesMapType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef LabelObjectType::AttributesMapType otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::AttributesMapType

Definition at line 63 of file otbLabelMapToAttributeImageFilter.h.

◆ AttributeValueType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef AttributeAccessorType::AttributeValueType otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::AttributeValueType

Definition at line 73 of file otbLabelMapToAttributeImageFilter.h.

◆ ConstLineIteratorType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef LabelObjectType::ConstLineIterator otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::ConstLineIteratorType

Definition at line 62 of file otbLabelMapToAttributeImageFilter.h.

◆ ConstPointer

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef itk::SmartPointer<const Self> otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::ConstPointer

Definition at line 51 of file otbLabelMapToAttributeImageFilter.h.

◆ IndexType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef OutputImageType::IndexType otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::IndexType

Definition at line 68 of file otbLabelMapToAttributeImageFilter.h.

◆ InputImageType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef TInputImage otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::InputImageType

Some convenient typedefs.

Definition at line 57 of file otbLabelMapToAttributeImageFilter.h.

◆ LabelObjectType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef InputImageType::LabelObjectType otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::LabelObjectType

Definition at line 61 of file otbLabelMapToAttributeImageFilter.h.

◆ OutputImageType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef TOutputImage otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::OutputImageType

Definition at line 65 of file otbLabelMapToAttributeImageFilter.h.

◆ OutputInternalPixelType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef OutputImageType::InternalPixelType otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::OutputInternalPixelType

Definition at line 67 of file otbLabelMapToAttributeImageFilter.h.

◆ OutputPixelType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef OutputImageType::PixelType otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::OutputPixelType

Definition at line 66 of file otbLabelMapToAttributeImageFilter.h.

◆ Pointer

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef itk::SmartPointer<Self> otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::Pointer

Definition at line 50 of file otbLabelMapToAttributeImageFilter.h.

◆ Self

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef LabelMapToAttributeImageFilter otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::Self

Standard class typedefs.

Definition at line 48 of file otbLabelMapToAttributeImageFilter.h.

◆ Superclass

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef itk::LabelMapFilter<TInputImage, TOutputImage> otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::Superclass

Definition at line 49 of file otbLabelMapToAttributeImageFilter.h.

◆ VectorPixelType

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
typedef itk::VariableLengthVector<OutputInternalPixelType> otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::VectorPixelType

Definition at line 69 of file otbLabelMapToAttributeImageFilter.h.

Constructor & Destructor Documentation

◆ LabelMapToAttributeImageFilter()

template<class TInputImage , class TOutputImage , class TAttributeAccessor >
otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::LabelMapToAttributeImageFilter
protected

Constructor

Definition at line 33 of file otbLabelMapToAttributeImageFilter.hxx.

◆ ~LabelMapToAttributeImageFilter()

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::~LabelMapToAttributeImageFilter ( )
inlineoverrideprotected

Definition at line 104 of file otbLabelMapToAttributeImageFilter.h.

Member Function Documentation

◆ BeforeThreadedGenerateData()

template<class TInputImage , class TOutputImage , class TAttributeAccessor >
void otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::BeforeThreadedGenerateData
overrideprotected

Set the chosen attributes

Definition at line 88 of file otbLabelMapToAttributeImageFilter.hxx.

◆ CreateAnother()

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
virtual::itk::LightObject::Pointer otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::CreateAnother ( void  ) const

◆ GenerateOutputInformation()

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

Set the chosen attributes

Definition at line 78 of file otbLabelMapToAttributeImageFilter.hxx.

◆ GetBackgroundValue()

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
virtual OutputInternalPixelType otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::GetBackgroundValue ( ) const
virtual

Get macro for background value

◆ GetChosenAttributes()

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
const AttributeListType& otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::GetChosenAttributes ( )
inline

Get the current chosen attributes

Definition at line 82 of file otbLabelMapToAttributeImageFilter.h.

◆ GetNameOfClass()

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
virtual const char* otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ GetNumberOfComponentsPerPixel()

template<class TInputImage , class TOutputImage , class TAttributeAccessor >
unsigned int otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::GetNumberOfComponentsPerPixel

Get the number of components of the output image

Definition at line 47 of file otbLabelMapToAttributeImageFilter.hxx.

◆ New()

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
static Pointer otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::New ( )
static

Standard New method.

◆ SetAttributeForNthChannel() [1/2]

template<class TInputImage , class TOutputImage , class TAttributeAccessor >
bool otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::SetAttributeForNthChannel ( unsigned int  channel,
const char *  attribute 
)

Fill the given channel with value from the given attribute

Definition at line 53 of file otbLabelMapToAttributeImageFilter.hxx.

References otbWarningMacro.

◆ SetAttributeForNthChannel() [2/2]

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
bool otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::SetAttributeForNthChannel ( unsigned int  channel,
const std::string &  attribute 
)
inline

Fill the given channel with value from the given attribute

Definition at line 97 of file otbLabelMapToAttributeImageFilter.h.

◆ SetBackgroundValue()

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
virtual void otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::SetBackgroundValue ( OutputInternalPixelType  _arg)
virtual

Set macro for background value

◆ SetChosenAttributes()

template<class TInputImage , class TOutputImage , class TAttributeAccessor >
void otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::SetChosenAttributes ( AttributeListType newAttributes)

Set the chosen attributes

Definition at line 41 of file otbLabelMapToAttributeImageFilter.hxx.

◆ ThreadedProcessLabelObject()

template<class TInputImage , class TOutputImage , class TAttributeAccessor >
void otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::ThreadedProcessLabelObject ( LabelObjectType labelObject)
overrideprotected

Set the chosen attributes

Definition at line 110 of file otbLabelMapToAttributeImageFilter.hxx.

Member Data Documentation

◆ m_BackgroundValue

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
OutputInternalPixelType otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::m_BackgroundValue
private

Background pixel value

Definition at line 114 of file otbLabelMapToAttributeImageFilter.h.

◆ m_ChosenAttributes

template<class TInputImage , class TOutputImage , class TAttributeAccessor = typename Functor::AttributesMapLabelObjectAccessor<typename TInputImage::LabelObjectType>>
AttributeListType otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::m_ChosenAttributes
private

List of chosen attributes

Definition at line 117 of file otbLabelMapToAttributeImageFilter.h.


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