OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap > Class Template Reference

#include <otbVectorDataToLabelMapFilter.h>

+ Inheritance diagram for otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >:
+ Collaboration diagram for otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >:

Public Types

typedef InternalTreeNodeType::ChildrenListType ChildrenListType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef otb::CorrectPolygonFunctor< PolygonTypeCorrectFunctorType
 
typedef DataNodeType::Pointer DataNodePointerType
 
typedef InputVectorDataType::DataNodeType DataNodeType
 
typedef OutputLabelMapType::DirectionType DirectionType
 
typedef OutputLabelMapType::IndexType IndexType
 
typedef InputVectorDataType::ConstPointer InputVectorDataConstPointer
 
typedef InputVectorDataType::Pointer InputVectorDataPointer
 
typedef TVectorData InputVectorDataType
 
typedef InputVectorDataType::DataTreeType::TreeNodeType InternalTreeNodeType
 
typedef OutputLabelMapType::LabelType LabelType
 
typedef OutputLabelMapType::PointType OriginType
 
typedef OutputLabelMapType::ConstPointer OutputLabelMapConstPointer
 
typedef OutputLabelMapType::PixelType OutputLabelMapPixelType
 
typedef OutputLabelMapType::Pointer OutputLabelMapPointer
 
typedef TLabelMap OutputLabelMapType
 
typedef itk::SmartPointer< SelfPointer
 
typedef InputVectorDataType::PointType PointType
 
typedef PolygonType::Pointer PolygonPointerType
 
typedef DataNodeType::PolygonType PolygonType
 
typedef VectorDataToLabelMapFilter Self
 
typedef itk::Size< itkGetStaticConstMacro(VectorDataDimension)> SizeType
 
typedef OutputLabelMapType::SpacingType SpacingType
 
typedef LabelMapSource< TLabelMap > Superclass
 
- Public Types inherited from otb::LabelMapSource< TLabelMap >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 
typedef TLabelMap ::Pointer OutputLabelMapPointer
 
typedef TLabelMap OutputLabelMapType
 
typedef itk::SmartPointer< SelfPointer
 
typedef LabelMapSource Self
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from otb::LabelMapSource< TLabelMap >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual OutputLabelMapTypeGetOutput (void)
 
virtual OutputLabelMapTypeGetOutput (DataObjectPointerArraySizeType idx)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::LabelMapSource< TLabelMap >
static Pointer New ()
 

Static Public Attributes

static const unsigned int VectorDataDimension = TVectorData::Dimension
 
LabelType m_lab
 
SpacingType m_Spacing {0.0}
 
OriginType m_Origin {0.0}
 
SizeType m_Size {0,0}
 
IndexType m_StartIndex
 
DirectionType m_Direction
 
OutputLabelMapPixelType m_BackgroundValue
 
virtual void SetBackgroundValue (OutputLabelMapPixelType _arg)
 
virtual OutputLabelMapPixelType GetBackgroundValue () const
 
virtual void SetSize (SizeType _arg)
 
virtual const SizeTypeGetSize () const
 
virtual void SetOrigin (OriginType _arg)
 
virtual void SetOrigin (const double origin[2])
 
virtual void SetOrigin (const float origin[2])
 
virtual const OriginTypeGetOrigin () const
 
virtual const IndexTypeGetStartIndex () const
 
virtual void SetStartIndex (IndexType _arg)
 
virtual void SetSpacing (const SpacingType &spacing)
 
virtual void SetSpacing (const double spacing[2])
 
virtual void SetSpacing (const float spacing[2])
 
virtual const SpacingTypeGetSpacing () const
 
virtual void SetInput (const InputVectorDataType *input)
 
virtual void SetInput (unsigned int idx, const InputVectorDataType *input)
 
const InputVectorDataTypeGetInput (void)
 
const InputVectorDataTypeGetInput (unsigned int idx)
 
void GenerateOutputInformation () override
 
 VectorDataToLabelMapFilter ()
 
 ~VectorDataToLabelMapFilter () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void GenerateData () override
 
 VectorDataToLabelMapFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 
void ProcessNode (InternalTreeNodeType *source)
 

Additional Inherited Members

- Protected Member Functions inherited from otb::LabelMapSource< TLabelMap >
 LabelMapSource ()
 
 ~LabelMapSource () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual void AllocateOutputs ()
 

Detailed Description

template<class TVectorData, class TLabelMap>
class otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >

Convert a vector data and produce a collection of label objects for each node.

VectorDataToLabelMapFilter convert a vector data in a LabelMap. Each distinct object is assigned a unique label. The final object labels start with 1 and are consecutive (depraced +10).

See also
LabelMapSource

Definition at line 58 of file otbVectorDataToLabelMapFilter.h.

Member Typedef Documentation

◆ ChildrenListType

template<class TVectorData , class TLabelMap >
typedef InternalTreeNodeType::ChildrenListType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::ChildrenListType

Definition at line 78 of file otbVectorDataToLabelMapFilter.h.

◆ ConstPointer

template<class TVectorData , class TLabelMap >
typedef itk::SmartPointer<const Self> otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::ConstPointer

Definition at line 106 of file otbVectorDataToLabelMapFilter.h.

◆ CorrectFunctorType

template<class TVectorData , class TLabelMap >
typedef otb::CorrectPolygonFunctor<PolygonType> otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::CorrectFunctorType

typedefs for correct polygon

Definition at line 92 of file otbVectorDataToLabelMapFilter.h.

◆ DataNodePointerType

template<class TVectorData , class TLabelMap >
typedef DataNodeType::Pointer otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::DataNodePointerType

Definition at line 80 of file otbVectorDataToLabelMapFilter.h.

◆ DataNodeType

template<class TVectorData , class TLabelMap >
typedef InputVectorDataType::DataNodeType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::DataNodeType

Definition at line 79 of file otbVectorDataToLabelMapFilter.h.

◆ DirectionType

template<class TVectorData , class TLabelMap >
typedef OutputLabelMapType::DirectionType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::DirectionType

Definition at line 89 of file otbVectorDataToLabelMapFilter.h.

◆ IndexType

template<class TVectorData , class TLabelMap >
typedef OutputLabelMapType::IndexType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::IndexType

Definition at line 85 of file otbVectorDataToLabelMapFilter.h.

◆ InputVectorDataConstPointer

template<class TVectorData , class TLabelMap >
typedef InputVectorDataType::ConstPointer otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::InputVectorDataConstPointer

Definition at line 72 of file otbVectorDataToLabelMapFilter.h.

◆ InputVectorDataPointer

template<class TVectorData , class TLabelMap >
typedef InputVectorDataType::Pointer otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::InputVectorDataPointer

Definition at line 71 of file otbVectorDataToLabelMapFilter.h.

◆ InputVectorDataType

template<class TVectorData , class TLabelMap >
typedef TVectorData otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::InputVectorDataType

Some convenient typedefs.

Definition at line 69 of file otbVectorDataToLabelMapFilter.h.

◆ InternalTreeNodeType

template<class TVectorData , class TLabelMap >
typedef InputVectorDataType::DataTreeType::TreeNodeType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::InternalTreeNodeType

Definition at line 77 of file otbVectorDataToLabelMapFilter.h.

◆ LabelType

template<class TVectorData , class TLabelMap >
typedef OutputLabelMapType::LabelType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::LabelType

Definition at line 83 of file otbVectorDataToLabelMapFilter.h.

◆ OriginType

template<class TVectorData , class TLabelMap >
typedef OutputLabelMapType::PointType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::OriginType

Definition at line 87 of file otbVectorDataToLabelMapFilter.h.

◆ OutputLabelMapConstPointer

template<class TVectorData , class TLabelMap >
typedef OutputLabelMapType::ConstPointer otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::OutputLabelMapConstPointer

Definition at line 75 of file otbVectorDataToLabelMapFilter.h.

◆ OutputLabelMapPixelType

template<class TVectorData , class TLabelMap >
typedef OutputLabelMapType::PixelType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::OutputLabelMapPixelType

Definition at line 86 of file otbVectorDataToLabelMapFilter.h.

◆ OutputLabelMapPointer

template<class TVectorData , class TLabelMap >
typedef OutputLabelMapType::Pointer otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::OutputLabelMapPointer

Definition at line 74 of file otbVectorDataToLabelMapFilter.h.

◆ OutputLabelMapType

template<class TVectorData , class TLabelMap >
typedef TLabelMap otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::OutputLabelMapType

Definition at line 70 of file otbVectorDataToLabelMapFilter.h.

◆ Pointer

template<class TVectorData , class TLabelMap >
typedef itk::SmartPointer<Self> otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::Pointer

Smart pointer typedef support

Definition at line 105 of file otbVectorDataToLabelMapFilter.h.

◆ PointType

template<class TVectorData , class TLabelMap >
typedef InputVectorDataType::PointType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::PointType

Definition at line 100 of file otbVectorDataToLabelMapFilter.h.

◆ PolygonPointerType

template<class TVectorData , class TLabelMap >
typedef PolygonType::Pointer otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::PolygonPointerType

Definition at line 82 of file otbVectorDataToLabelMapFilter.h.

◆ PolygonType

template<class TVectorData , class TLabelMap >
typedef DataNodeType::PolygonType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::PolygonType

Definition at line 81 of file otbVectorDataToLabelMapFilter.h.

◆ Self

template<class TVectorData , class TLabelMap >
typedef VectorDataToLabelMapFilter otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::Self

Standard "Self" & Superclass typedef.

Definition at line 65 of file otbVectorDataToLabelMapFilter.h.

◆ SizeType

template<class TVectorData , class TLabelMap >
typedef itk::Size<itkGetStaticConstMacro(VectorDataDimension)> otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SizeType

Image size typedef.

Definition at line 98 of file otbVectorDataToLabelMapFilter.h.

◆ SpacingType

template<class TVectorData , class TLabelMap >
typedef OutputLabelMapType::SpacingType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SpacingType

Definition at line 88 of file otbVectorDataToLabelMapFilter.h.

◆ Superclass

template<class TVectorData , class TLabelMap >
typedef LabelMapSource<TLabelMap> otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::Superclass

Definition at line 66 of file otbVectorDataToLabelMapFilter.h.

Constructor & Destructor Documentation

◆ VectorDataToLabelMapFilter() [1/2]

template<class TVectorData , class TLabelMap >
otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::VectorDataToLabelMapFilter
protected

Current label value incremented after the vectorization of a layer

Definition at line 34 of file otbVectorDataToLabelMapFilter.hxx.

◆ ~VectorDataToLabelMapFilter()

template<class TVectorData , class TLabelMap >
otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::~VectorDataToLabelMapFilter ( )
inlineoverrideprotected

Current label value incremented after the vectorization of a layer

Definition at line 172 of file otbVectorDataToLabelMapFilter.h.

◆ VectorDataToLabelMapFilter() [2/2]

template<class TVectorData , class TLabelMap >
otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::VectorDataToLabelMapFilter ( const Self )
privatedelete

VectorDataToLabelMapFilter needs the entire input. Therefore it must provide an implementation GenerateInputRequestedRegion().

See also
ProcessObject::GenerateInputRequestedRegion(). VectorDataToLabelMapFilter will produce all of the output. Therefore it must provide an implementation of EnlargeOutputRequestedRegion().
ProcessObject::EnlargeOutputRequestedRegion()

Member Function Documentation

◆ CreateAnother()

template<class TVectorData , class TLabelMap >
virtual::itk::LightObject::Pointer otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::CreateAnother ( void  ) const

◆ GenerateData()

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GenerateData
overrideprotected

Standard pipeline method.

Definition at line 188 of file otbVectorDataToLabelMapFilter.hxx.

◆ GenerateOutputInformation()

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GenerateOutputInformation
override

overloaded because pb during copyinformation

Definition at line 98 of file otbVectorDataToLabelMapFilter.hxx.

References otbGenericMsgDebugMacro.

◆ GetBackgroundValue()

template<class TVectorData , class TLabelMap >
virtual OutputLabelMapPixelType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GetBackgroundValue ( ) const
virtual

Current label value incremented after the vectorization of a layer

◆ GetInput() [1/2]

template<class TVectorData , class TLabelMap >
const VectorDataToLabelMapFilter< TVectorData, TLabelMap >::InputVectorDataType * otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GetInput ( unsigned int  idx)

Current label value incremented after the vectorization of a layer

Definition at line 182 of file otbVectorDataToLabelMapFilter.hxx.

◆ GetInput() [2/2]

template<class TVectorData , class TLabelMap >
const VectorDataToLabelMapFilter< TVectorData, TLabelMap >::InputVectorDataType * otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GetInput ( void  )

Current label value incremented after the vectorization of a layer

Definition at line 170 of file otbVectorDataToLabelMapFilter.hxx.

◆ GetNameOfClass()

template<class TVectorData , class TLabelMap >
virtual const char* otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GetNameOfClass ( ) const
virtual

Set the size of the output image. Set the starting index of the output image. Run-time type information (and related methods)

◆ GetOrigin()

template<class TVectorData , class TLabelMap >
virtual const OriginType& otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GetOrigin ( ) const
virtual

Current label value incremented after the vectorization of a layer

◆ GetSize()

template<class TVectorData , class TLabelMap >
virtual const SizeType& otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GetSize ( ) const
virtual

Get the size of the output image.

◆ GetSpacing()

template<class TVectorData , class TLabelMap >
virtual const SpacingType& otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GetSpacing ( ) const
virtual

Current label value incremented after the vectorization of a layer

◆ GetStartIndex()

template<class TVectorData , class TLabelMap >
virtual const IndexType& otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::GetStartIndex ( ) const
virtual

Get/Set start index

◆ New()

template<class TVectorData , class TLabelMap >
static Pointer otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::operator= ( const Self )
privatedelete

Current label value incremented after the vectorization of a layer

◆ PrintSelf()

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

Current label value incremented after the vectorization of a layer

Definition at line 343 of file otbVectorDataToLabelMapFilter.hxx.

◆ ProcessNode()

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::ProcessNode ( InternalTreeNodeType source)
private

◆ SetBackgroundValue()

template<class TVectorData , class TLabelMap >
virtual void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetBackgroundValue ( OutputLabelMapPixelType  _arg)
virtual

Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin().

◆ SetInput() [1/2]

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetInput ( const InputVectorDataType input)
virtual

Current label value incremented after the vectorization of a layer

Definition at line 156 of file otbVectorDataToLabelMapFilter.hxx.

◆ SetInput() [2/2]

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetInput ( unsigned int  idx,
const InputVectorDataType input 
)
virtual

Current label value incremented after the vectorization of a layer

Definition at line 163 of file otbVectorDataToLabelMapFilter.hxx.

◆ SetOrigin() [1/3]

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetOrigin ( const double  origin[2])
virtual

Current label value incremented after the vectorization of a layer

Definition at line 77 of file otbVectorDataToLabelMapFilter.hxx.

◆ SetOrigin() [2/3]

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetOrigin ( const float  origin[2])
virtual

Current label value incremented after the vectorization of a layer

Definition at line 85 of file otbVectorDataToLabelMapFilter.hxx.

◆ SetOrigin() [3/3]

template<class TVectorData , class TLabelMap >
virtual void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetOrigin ( OriginType  _arg)
virtual

Set the origin of the vector data.

See also
GetOrigin()

◆ SetSize()

template<class TVectorData , class TLabelMap >
virtual void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetSize ( SizeType  _arg)
virtual

Set the size of the output image.

◆ SetSpacing() [1/3]

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetSpacing ( const double  spacing[2])
virtual

Current label value incremented after the vectorization of a layer

Definition at line 59 of file otbVectorDataToLabelMapFilter.hxx.

◆ SetSpacing() [2/3]

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetSpacing ( const float  spacing[2])
virtual

Current label value incremented after the vectorization of a layer

Definition at line 67 of file otbVectorDataToLabelMapFilter.hxx.

◆ SetSpacing() [3/3]

template<class TVectorData , class TLabelMap >
void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetSpacing ( const SpacingType spacing)
virtual

Set the spacing (size of a pixel) of the vector data.

See also
GetSignedSpacing()

Definition at line 48 of file otbVectorDataToLabelMapFilter.hxx.

◆ SetStartIndex()

template<class TVectorData , class TLabelMap >
virtual void otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::SetStartIndex ( IndexType  _arg)
virtual

Current label value incremented after the vectorization of a layer

Member Data Documentation

◆ m_BackgroundValue

template<class TVectorData , class TLabelMap >
OutputLabelMapPixelType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::m_BackgroundValue
private

Background value, not use actually, background value=itk::NumericTraits<LabelType>::max()

Definition at line 211 of file otbVectorDataToLabelMapFilter.h.

◆ m_Direction

template<class TVectorData , class TLabelMap >
DirectionType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::m_Direction
private

Current label value incremented after the vectorization of a layer

Definition at line 208 of file otbVectorDataToLabelMapFilter.h.

◆ m_lab

template<class TVectorData , class TLabelMap >
LabelType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::m_lab
private

Current label value incremented after the vectorization of a layer

Definition at line 201 of file otbVectorDataToLabelMapFilter.h.

◆ m_Origin

template<class TVectorData , class TLabelMap >
OriginType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::m_Origin {0.0}
private

Current label value incremented after the vectorization of a layer

Definition at line 205 of file otbVectorDataToLabelMapFilter.h.

◆ m_Size

template<class TVectorData , class TLabelMap >
SizeType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::m_Size {0,0}
private

Current label value incremented after the vectorization of a layer

Definition at line 206 of file otbVectorDataToLabelMapFilter.h.

◆ m_Spacing

template<class TVectorData , class TLabelMap >
SpacingType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::m_Spacing {0.0}
private

Current label value incremented after the vectorization of a layer

Definition at line 204 of file otbVectorDataToLabelMapFilter.h.

◆ m_StartIndex

template<class TVectorData , class TLabelMap >
IndexType otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::m_StartIndex
private

Current label value incremented after the vectorization of a layer

Definition at line 207 of file otbVectorDataToLabelMapFilter.h.

◆ VectorDataDimension

template<class TVectorData , class TLabelMap >
const unsigned int otb::VectorDataToLabelMapFilter< TVectorData, TLabelMap >::VectorDataDimension = TVectorData::Dimension
static

Number of dimensions.

Definition at line 95 of file otbVectorDataToLabelMapFilter.h.


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