OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::PersistentImageToOGRLayerFilter< TImage > Class Template Referenceabstract

#include <otbPersistentImageToOGRLayerFilter.h>

+ Inheritance diagram for otb::PersistentImageToOGRLayerFilter< TImage >:
+ Collaboration diagram for otb::PersistentImageToOGRLayerFilter< TImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef InputImageType::IndexType IndexType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef TImage InputImageType
 
typedef InputImageType::InternalPixelType InternalPixelType
 
typedef OGRDataSourceType::Pointer OGRDataSourcePointerType
 
typedef ogr::DataSource OGRDataSourceType
 
typedef ogr::Feature OGRFeatureType
 
typedef ogr::Layer OGRLayerType
 
typedef InputImageType::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef InputImageType::RegionType RegionType
 
typedef PersistentImageToOGRLayerFilter Self
 
typedef InputImageType::SizeType SizeType
 
typedef PersistentImageFilter< TImage, TImage > Superclass
 
- Public Types inherited from otb::PersistentImageFilter< TImage, TImage >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef TImage InputImageType
 
typedef TImage OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef PersistentImageFilter Self
 
typedef itk::ImageToImageFilter< TImage, TImage > Superclass
 

Public Member Functions

void AllocateOutputs () override
 
virtual const char * GetNameOfClass () const
 
const OGRLayerTypeGetOGRLayer (void) const
 
virtual SizeType GetStreamSize ()
 
virtual void Initialize (void)
 
void Reset (void) override
 
void SetOGRLayer (const OGRLayerType &ogrLayer)
 
void Synthetize (void) override
 
- Public Member Functions inherited from otb::PersistentImageFilter< TImage, TImage >
virtual const char * GetNameOfClass () const
 

Protected Member Functions

void GenerateData () override
 
 PersistentImageToOGRLayerFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~PersistentImageToOGRLayerFilter () override
 
- Protected Member Functions inherited from otb::PersistentImageFilter< TImage, TImage >
 PersistentImageFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~PersistentImageFilter () override
 

Private Member Functions

void operator= (const Self &)=delete
 
 PersistentImageToOGRLayerFilter (const Self &)=delete
 
virtual OGRDataSourcePointerType ProcessTile ()=0
 

Private Attributes

OGRLayerType m_OGRLayer
 
SizeType m_StreamSize
 

Detailed Description

template<class TImage>
class otb::PersistentImageToOGRLayerFilter< TImage >

Perform vectorization in a persistent way.

This filter is a generic filter. It is the base class of the Large scale segmentation framework. The ProcessTile() method is pure virtual and is implemented in sub class (

See also
PersistentStreamingLabelImageToOGRDataFilter). It returns a "memory" DataSource. This filter only copy each feature of the layer in the "memory" DataSource into the input OGRLayer set by SetOGRLayer() method.
PersistentImageFilter

Definition at line 51 of file otbPersistentImageToOGRLayerFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TImage >
typedef itk::SmartPointer<const Self> otb::PersistentImageToOGRLayerFilter< TImage >::ConstPointer

Definition at line 58 of file otbPersistentImageToOGRLayerFilter.h.

◆ IndexType

template<class TImage >
typedef InputImageType::IndexType otb::PersistentImageToOGRLayerFilter< TImage >::IndexType

Definition at line 67 of file otbPersistentImageToOGRLayerFilter.h.

◆ InputImagePointer

template<class TImage >
typedef InputImageType::Pointer otb::PersistentImageToOGRLayerFilter< TImage >::InputImagePointer

Definition at line 64 of file otbPersistentImageToOGRLayerFilter.h.

◆ InputImageType

template<class TImage >
typedef TImage otb::PersistentImageToOGRLayerFilter< TImage >::InputImageType

Definition at line 61 of file otbPersistentImageToOGRLayerFilter.h.

◆ InternalPixelType

template<class TImage >
typedef InputImageType::InternalPixelType otb::PersistentImageToOGRLayerFilter< TImage >::InternalPixelType

Definition at line 69 of file otbPersistentImageToOGRLayerFilter.h.

◆ OGRDataSourcePointerType

Definition at line 72 of file otbPersistentImageToOGRLayerFilter.h.

◆ OGRDataSourceType

template<class TImage >
typedef ogr::DataSource otb::PersistentImageToOGRLayerFilter< TImage >::OGRDataSourceType

Definition at line 71 of file otbPersistentImageToOGRLayerFilter.h.

◆ OGRFeatureType

template<class TImage >
typedef ogr::Feature otb::PersistentImageToOGRLayerFilter< TImage >::OGRFeatureType

Definition at line 74 of file otbPersistentImageToOGRLayerFilter.h.

◆ OGRLayerType

template<class TImage >
typedef ogr::Layer otb::PersistentImageToOGRLayerFilter< TImage >::OGRLayerType

Definition at line 73 of file otbPersistentImageToOGRLayerFilter.h.

◆ PixelType

template<class TImage >
typedef InputImageType::PixelType otb::PersistentImageToOGRLayerFilter< TImage >::PixelType

Definition at line 68 of file otbPersistentImageToOGRLayerFilter.h.

◆ Pointer

template<class TImage >
typedef itk::SmartPointer<Self> otb::PersistentImageToOGRLayerFilter< TImage >::Pointer

Definition at line 57 of file otbPersistentImageToOGRLayerFilter.h.

◆ RegionType

template<class TImage >
typedef InputImageType::RegionType otb::PersistentImageToOGRLayerFilter< TImage >::RegionType

Definition at line 65 of file otbPersistentImageToOGRLayerFilter.h.

◆ Self

Standard Self typedef

Definition at line 55 of file otbPersistentImageToOGRLayerFilter.h.

◆ SizeType

template<class TImage >
typedef InputImageType::SizeType otb::PersistentImageToOGRLayerFilter< TImage >::SizeType

Definition at line 66 of file otbPersistentImageToOGRLayerFilter.h.

◆ Superclass

template<class TImage >
typedef PersistentImageFilter<TImage, TImage> otb::PersistentImageToOGRLayerFilter< TImage >::Superclass

Definition at line 56 of file otbPersistentImageToOGRLayerFilter.h.

Constructor & Destructor Documentation

◆ PersistentImageToOGRLayerFilter() [1/2]

template<class TImage >
otb::PersistentImageToOGRLayerFilter< TImage >::PersistentImageToOGRLayerFilter
protected

Definition at line 35 of file otbPersistentImageToOGRLayerFilter.hxx.

◆ ~PersistentImageToOGRLayerFilter()

template<class TImage >
otb::PersistentImageToOGRLayerFilter< TImage >::~PersistentImageToOGRLayerFilter
overrideprotected

Definition at line 41 of file otbPersistentImageToOGRLayerFilter.hxx.

◆ PersistentImageToOGRLayerFilter() [2/2]

template<class TImage >
otb::PersistentImageToOGRLayerFilter< TImage >::PersistentImageToOGRLayerFilter ( const Self )
privatedelete

Member Function Documentation

◆ AllocateOutputs()

template<class TImage >
void otb::PersistentImageToOGRLayerFilter< TImage >::AllocateOutputs
override

Definition at line 59 of file otbPersistentImageToOGRLayerFilter.hxx.

◆ GenerateData()

template<class TImage >
void otb::PersistentImageToOGRLayerFilter< TImage >::GenerateData
overrideprotected

Definition at line 112 of file otbPersistentImageToOGRLayerFilter.hxx.

◆ GetNameOfClass()

template<class TImage >
virtual const char* otb::PersistentImageToOGRLayerFilter< TImage >::GetNameOfClass ( ) const
virtual

Runtime information support.

◆ GetOGRLayer()

template<class TImage >
const PersistentImageToOGRLayerFilter< TImage >::OGRLayerType & otb::PersistentImageToOGRLayerFilter< TImage >::GetOGRLayer ( void  ) const

Get the ogr::Layer output.

Definition at line 53 of file otbPersistentImageToOGRLayerFilter.hxx.

◆ GetStreamSize()

template<class TImage >
virtual SizeType otb::PersistentImageToOGRLayerFilter< TImage >::GetStreamSize ( )
virtual

Get the size of the tile used for streaming. This is useful if you use for example the OGRFusionTileFilter for fusioning streaming tiles.

◆ Initialize()

template<class TImage >
void otb::PersistentImageToOGRLayerFilter< TImage >::Initialize ( void  )
virtual

This method creates the output layer in the OGRLayer set by the user.

Note
This method must be called before the call of Update .

Definition at line 75 of file otbPersistentImageToOGRLayerFilter.hxx.

◆ operator=()

template<class TImage >
void otb::PersistentImageToOGRLayerFilter< TImage >::operator= ( const Self )
privatedelete

◆ PrintSelf()

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

Definition at line 164 of file otbPersistentImageToOGRLayerFilter.hxx.

◆ ProcessTile()

template<class TImage >
virtual OGRDataSourcePointerType otb::PersistentImageToOGRLayerFilter< TImage >::ProcessTile ( )
privatepure virtual

◆ Reset()

template<class TImage >
void otb::PersistentImageToOGRLayerFilter< TImage >::Reset ( void  )
overridevirtual

Reset the persistent data of the filter.

Implements otb::PersistentImageFilter< TImage, TImage >.

Definition at line 65 of file otbPersistentImageToOGRLayerFilter.hxx.

◆ SetOGRLayer()

template<class TImage >
void otb::PersistentImageToOGRLayerFilter< TImage >::SetOGRLayer ( const OGRLayerType ogrLayer)

Set the ogr::Layer in which the geometries will be dumped

Definition at line 46 of file otbPersistentImageToOGRLayerFilter.hxx.

◆ Synthetize()

template<class TImage >
void otb::PersistentImageToOGRLayerFilter< TImage >::Synthetize ( void  )
overridevirtual

Synthesize the persistent data of the filter.

Implements otb::PersistentImageFilter< TImage, TImage >.

Definition at line 70 of file otbPersistentImageToOGRLayerFilter.hxx.

Member Data Documentation

◆ m_OGRLayer

template<class TImage >
OGRLayerType otb::PersistentImageToOGRLayerFilter< TImage >::m_OGRLayer
private

Definition at line 113 of file otbPersistentImageToOGRLayerFilter.h.

◆ m_StreamSize

template<class TImage >
SizeType otb::PersistentImageToOGRLayerFilter< TImage >::m_StreamSize
private

Definition at line 115 of file otbPersistentImageToOGRLayerFilter.h.


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