Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
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

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

#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 Self
ConstPointer
 
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
< OutputInternalPixelType
VectorPixelType
 

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

 LabelMapToAttributeImageFilter ()
 
 ~LabelMapToAttributeImageFilter ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual void GenerateOutputInformation ()
 
virtual void ThreadedProcessLabelObject (LabelObjectType *labelObject)
 

Private Attributes

OutputInternalPixelType m_BackgroundValue
 
AttributeListType m_ChosenAttributes
 

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 39 of file otbLabelMapToAttributeImageFilter.h.

Member Typedef Documentation

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

Definition at line 68 of file otbLabelMapToAttributeImageFilter.h.

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 67 of file otbLabelMapToAttributeImageFilter.h.

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 59 of file otbLabelMapToAttributeImageFilter.h.

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 69 of file otbLabelMapToAttributeImageFilter.h.

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 58 of file otbLabelMapToAttributeImageFilter.h.

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 48 of file otbLabelMapToAttributeImageFilter.h.

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 64 of file otbLabelMapToAttributeImageFilter.h.

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 53 of file otbLabelMapToAttributeImageFilter.h.

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 57 of file otbLabelMapToAttributeImageFilter.h.

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

Definition at line 61 of file otbLabelMapToAttributeImageFilter.h.

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 63 of file otbLabelMapToAttributeImageFilter.h.

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 62 of file otbLabelMapToAttributeImageFilter.h.

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 47 of file otbLabelMapToAttributeImageFilter.h.

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 44 of file otbLabelMapToAttributeImageFilter.h.

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 46 of file otbLabelMapToAttributeImageFilter.h.

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 65 of file otbLabelMapToAttributeImageFilter.h.

Constructor & Destructor Documentation

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

Constructor

Definition at line 31 of file otbLabelMapToAttributeImageFilter.txx.

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

Definition at line 100 of file otbLabelMapToAttributeImageFilter.h.

Member Function Documentation

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

Definition at line 90 of file otbLabelMapToAttributeImageFilter.txx.

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
template<class TInputImage , class TOutputImage , class TAttributeAccessor >
void otb::LabelMapToAttributeImageFilter< TInputImage, TOutputImage, TAttributeAccessor >::GenerateOutputInformation ( void  )
protectedvirtual

Definition at line 79 of file otbLabelMapToAttributeImageFilter.txx.

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

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 78 of file otbLabelMapToAttributeImageFilter.h.

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).

Reimplemented from itk::LabelMapFilter< TInputImage, TOutputImage >.

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 46 of file otbLabelMapToAttributeImageFilter.txx.

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.

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.txx.

References otbWarningMacro.

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 93 of file otbLabelMapToAttributeImageFilter.h.

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

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

Set the chosen attributes

Definition at line 39 of file otbLabelMapToAttributeImageFilter.txx.

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

Definition at line 113 of file otbLabelMapToAttributeImageFilter.txx.

Member Data Documentation

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 110 of file otbLabelMapToAttributeImageFilter.h.

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 113 of file otbLabelMapToAttributeImageFilter.h.


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