Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::GISTableToLabelMapFilter< TGISTable, TLabelMap > Class Template Reference

Convert a LabelMap to a LabelMap. More...

#include <otbGISTableToLabelMapFilter.h>

+ Inheritance diagram for otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >:
+ Collaboration diagram for otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >:

Public Types

typedef
InputGISTableType::ConnectionPointerType 
ConnectionPointerType
 
typedef
InputGISTableType::ConnectionType 
ConnectionType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef
GISTableToVectorDataFilter
< TGISTable, TVectorData
GISTableToVectorDataFilterType
 
typedef
OutputLabelMapType::IndexType 
IndexType
 
typedef TGISTable InputGISTableType
 
typedef
OutputLabelMapType::ConstPointer 
OutputLabelMapConstPointer
 
typedef
OutputLabelMapType::PixelType 
OutputLabelMapPixelType
 
typedef OutputLabelMapType::Pointer OutputLabelMapPointer
 
typedef TLabelMap OutputLabelMapType
 
typedef itk::SmartPointer< SelfPointer
 
typedef
InputGISTableType::PointType 
PointType
 
typedef GISTableToLabelMapFilter Self
 
typedef itk::Size
< TGISTable::Dimension > 
SizeType
 
typedef LabelMapSource< TLabelMap > Superclass
 
typedef VectorData< typename
TGISTable::PrecisionType,
TGISTable::Dimension > 
TVectorData
 
typedef
VectorDataToLabelMapFilter
< TVectorData, TLabelMap > 
VectorDataToLabelMapFilterType
 
- Public Types inherited from otb::LabelMapSource< TLabelMap >
typedef itk::SmartPointer
< const Self
ConstPointer
 
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 void GenerateOutputInformation ()
 
virtual OutputLabelMapPixelType GetBackgroundValue () const
 
const InputGISTableTypeGetInput (void)
 
const InputGISTableTypeGetInput (unsigned int idx)
 
virtual const char * GetNameOfClass () const
 
virtual void SetBackgroundValue (OutputLabelMapPixelType _arg)
 
virtual void SetInput (const InputGISTableType *input)
 
virtual void SetInput (unsigned int idx, const InputGISTableType *input)
 
virtual void SetSize (SizeType _arg)
 
virtual void SetStartIndex (IndexType _arg)
 
- Public Member Functions inherited from otb::LabelMapSource< TLabelMap >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual OutputLabelMapTypeGetOutput (void)
 
virtual OutputLabelMapTypeGetOutput (unsigned int idx)
 

Static Public Member Functions

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

Protected Member Functions

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

Private Member Functions

 GISTableToLabelMapFilter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

OutputLabelMapPixelType m_BackgroundValue
 
GISTableToVectorDataFilterType::Pointer m_GISTableToVectorDataFilter
 
SizeType m_Size
 
IndexType m_StartIndex
 
VectorDataToLabelMapFilterType::Pointer m_VectorDataToLabelMapFilter
 

Detailed Description

template<class TGISTable, class TLabelMap>
class otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >

Convert a LabelMap to a LabelMap.

GISTableToLabelMapFilter converts a GIS Table (PostGIS...) to a LabelMap. The translation is delegate to the SHPLabelMapIO class (OGRLabelMapIO) which calls the OGR driver to translate GIS layer to a LabelMap structure

See Also
LabelMapSource ,

Definition at line 44 of file otbGISTableToLabelMapFilter.h.

Member Typedef Documentation

template<class TGISTable, class TLabelMap>
typedef InputGISTableType::ConnectionPointerType otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::ConnectionPointerType

Definition at line 66 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef InputGISTableType::ConnectionType otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::ConnectionType

Definition at line 65 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef itk::SmartPointer<const Self> otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::ConstPointer

Definition at line 53 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef GISTableToVectorDataFilter<TGISTable, TVectorData> otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GISTableToVectorDataFilterType

Definition at line 57 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef OutputLabelMapType::IndexType otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::IndexType

Definition at line 69 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef TGISTable otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::InputGISTableType

Some convenient typedefs.

Definition at line 60 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef OutputLabelMapType::ConstPointer otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::OutputLabelMapConstPointer

Definition at line 63 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef OutputLabelMapType::PixelType otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::OutputLabelMapPixelType

Definition at line 68 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef OutputLabelMapType::Pointer otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::OutputLabelMapPointer

Definition at line 62 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef TLabelMap otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::OutputLabelMapType

Definition at line 61 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef itk::SmartPointer<Self> otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::Pointer

Definition at line 52 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef InputGISTableType::PointType otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::PointType

Definition at line 82 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef GISTableToLabelMapFilter otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::Self

Standard class typedefs.

Definition at line 49 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef itk::Size<TGISTable::Dimension> otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::SizeType

Image size typedef.

Definition at line 76 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef LabelMapSource<TLabelMap> otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::Superclass

Definition at line 51 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef VectorData<typename TGISTable::PrecisionType, TGISTable::Dimension> otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::TVectorData

typedefs related to the GISTableToVectorDataFilter

Definition at line 56 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
typedef VectorDataToLabelMapFilter<TVectorData, TLabelMap> otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::VectorDataToLabelMapFilterType

Definition at line 58 of file otbGISTableToLabelMapFilter.h.

Constructor & Destructor Documentation

template<class TGISTable , class TLabelMap >
otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GISTableToLabelMapFilter ( )
protected

Definition at line 28 of file otbGISTableToLabelMapFilter.txx.

References itk::NumericTraits< T >::max().

template<class TGISTable, class TLabelMap>
virtual otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::~GISTableToLabelMapFilter ( )
inlineprotectedvirtual

Definition at line 107 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GISTableToLabelMapFilter ( const Self )
private

Member Function Documentation

template<class TGISTable, class TLabelMap>
virtual::itk::LightObject::Pointer otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::CreateAnother ( void  ) const
template<class TGISTable , class TLabelMap >
void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GenerateData ( void  )
protected

Single-threaded version of GenerateData. This filter delegates to the OGR driver.

Definition at line 139 of file otbGISTableToLabelMapFilter.txx.

References itk::NumericTraits< T >::max().

template<class TGISTable , class TLabelMap >
void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GenerateInputRequestedRegion ( void  )
protected

GISTableToLabelMapFilter needs the entire input be available. Thus, it needs to provide an implementation of GenerateInputRequestedRegion().

Definition at line 83 of file otbGISTableToLabelMapFilter.txx.

template<class TGISTable , class TLabelMap >
void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GenerateOutputInformation ( void  )
virtual

overloaded because pb during copyinformation

Definition at line 111 of file otbGISTableToLabelMapFilter.txx.

template<class TGISTable, class TLabelMap>
virtual OutputLabelMapPixelType otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GetBackgroundValue ( ) const
virtual
template<class TGISTable , class TLabelMap >
const GISTableToLabelMapFilter< TGISTable, TLabelMap >::InputGISTableType * otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GetInput ( void  )

Definition at line 60 of file otbGISTableToLabelMapFilter.txx.

template<class TGISTable , class TLabelMap >
const GISTableToLabelMapFilter< TGISTable, TLabelMap >::InputGISTableType * otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GetInput ( unsigned int  idx)

Definition at line 74 of file otbGISTableToLabelMapFilter.txx.

template<class TGISTable, class TLabelMap>
virtual const char* otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::GetNameOfClass ( ) const
virtual

Runtime information support.

Reimplemented from otb::LabelMapSource< TLabelMap >.

template<class TGISTable, class TLabelMap>
static Pointer otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::New ( )
static

Standard New method.

template<class TGISTable, class TLabelMap>
void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::operator= ( const Self )
private
template<class TGISTable , class TLabelMap >
void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protected

Definition at line 166 of file otbGISTableToLabelMapFilter.txx.

template<class TGISTable, class TLabelMap>
virtual void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::SetBackgroundValue ( OutputLabelMapPixelType  _arg)
virtual

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

template<class TGISTable , class TLabelMap >
void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::SetInput ( const InputGISTableType input)
virtual

Set/Get the GISTable input of this process object.

Definition at line 40 of file otbGISTableToLabelMapFilter.txx.

template<class TGISTable , class TLabelMap >
void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::SetInput ( unsigned int  idx,
const InputGISTableType input 
)
virtual

Definition at line 50 of file otbGISTableToLabelMapFilter.txx.

template<class TGISTable, class TLabelMap>
virtual void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::SetSize ( SizeType  _arg)
virtual

Set the size of the output image.

template<class TGISTable, class TLabelMap>
virtual void otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::SetStartIndex ( IndexType  _arg)
virtual

Set the starting index of the output image.

Member Data Documentation

template<class TGISTable, class TLabelMap>
OutputLabelMapPixelType otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::m_BackgroundValue
private

Definition at line 126 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
GISTableToVectorDataFilterType::Pointer otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::m_GISTableToVectorDataFilter
private

Definition at line 123 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
SizeType otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::m_Size
private

Definition at line 128 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
IndexType otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::m_StartIndex
private

Definition at line 129 of file otbGISTableToLabelMapFilter.h.

template<class TGISTable, class TLabelMap>
VectorDataToLabelMapFilterType::Pointer otb::GISTableToLabelMapFilter< TGISTable, TLabelMap >::m_VectorDataToLabelMapFilter
private

Definition at line 124 of file otbGISTableToLabelMapFilter.h.


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