OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::LabelImageToVectorDataFilter< TInputImage, TPrecision > Class Template Reference

#include <otbLabelImageToVectorDataFilter.h>

+ Inheritance diagram for otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >:
+ Collaboration diagram for otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef DataNodeType::Pointer DataNodePointerType
 
typedef VectorDataType::DataNodeType DataNodeType
 
typedef DataTreeType::Pointer DataTreePointerType
 
typedef VectorDataType::DataTreeType DataTreeType
 
typedef InputImageType::IndexType IndexType
 
typedef TInputImage InputImageType
 
typedef InputImageType::IndexType InputIndexType
 
typedef InputImageType::PixelType InputPixelType
 
typedef DataTreeType::TreeNodeType InternalTreeNodeType
 
typedef VectorDataType::LineType LineType
 
typedef OGRDataSourceType::Pointer OGRDataSourcePointerType
 
typedef ogr::DataSource OGRDataSourceType
 
typedef ogr::Layer OGRLayerType
 
typedef InputImageType::PointType OriginType
 
typedef itk::SmartPointer< SelfPointer
 
typedef VectorDataType::PointType PointType
 
typedef InputImageType::RegionType RegionType
 
typedef LabelImageToVectorDataFilter Self
 
typedef InputImageType::SizeType SizeType
 
typedef InputImageType::SpacingType SpacingType
 
typedef VectorDataSource< VectorData< TPrecision > > Superclass
 
typedef VectorDataType::Pointer VectorDataPointerType
 
typedef VectorData< TPrecision > VectorDataType
 
typedef LineType::VertexType VertexType
 
- Public Types inherited from otb::VectorDataSource< otb::VectorData< double > >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 
typedef otb::VectorData< double > ::Pointer OutputVectorDataPointer
 
typedef otb::VectorData< double > OutputVectorDataType
 
typedef itk::SmartPointer< SelfPointer
 
typedef VectorDataSource 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::VectorDataSource< otb::VectorData< double > >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual void GraftOutput (itk::DataObject *output)
 
virtual void GraftNthOutput (unsigned int idx, itk::DataObject *output)
 
virtual OutputVectorDataTypeGetOutput (void)
 
virtual OutputVectorDataTypeGetOutput (DataObjectPointerArraySizeType idx)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::VectorDataSource< otb::VectorData< double > >
static Pointer New ()
 
std::string m_FieldName
 
bool m_Use8Connected
 
virtual void SetInput (const InputImageType *input)
 
virtual const InputImageTypeGetInput (void)
 
virtual void SetInputMask (const InputImageType *input)
 
virtual const InputImageTypeGetInputMask (void)
 
virtual void SetFieldName (std::string _arg)
 
virtual std::string GetFieldName ()
 
virtual void SetUse8Connected (bool _arg)
 
virtual bool GetUse8Connected ()
 
 LabelImageToVectorDataFilter ()
 
 ~LabelImageToVectorDataFilter () override
 
void GenerateInputRequestedRegion () override
 
void GenerateData () override
 
 LabelImageToVectorDataFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Additional Inherited Members

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

Detailed Description

template<class TInputImage, class TPrecision = double>
class otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >

this class uses GDALPolygonize method to transform a Label image into a VectorData. An optional input mask can be used to exclude pixels from vectorization process. All pixels with a value of 0 in the input mask image will not be suitable for vectorization.

Note
The Use8Connected parameter can be turn on and it will be used in GDALPolygonize(). But be carreful, it can create cross polygons !
It is a non-streamed version.

Definition at line 44 of file otbLabelImageToVectorDataFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage , class TPrecision = double>
typedef itk::SmartPointer<const Self> otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::ConstPointer

Definition at line 51 of file otbLabelImageToVectorDataFilter.h.

◆ DataNodePointerType

template<class TInputImage , class TPrecision = double>
typedef DataNodeType::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::DataNodePointerType

Definition at line 76 of file otbLabelImageToVectorDataFilter.h.

◆ DataNodeType

template<class TInputImage , class TPrecision = double>
typedef VectorDataType::DataNodeType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::DataNodeType

Definition at line 75 of file otbLabelImageToVectorDataFilter.h.

◆ DataTreePointerType

template<class TInputImage , class TPrecision = double>
typedef DataTreeType::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::DataTreePointerType

Definition at line 73 of file otbLabelImageToVectorDataFilter.h.

◆ DataTreeType

template<class TInputImage , class TPrecision = double>
typedef VectorDataType::DataTreeType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::DataTreeType

Definition at line 72 of file otbLabelImageToVectorDataFilter.h.

◆ IndexType

template<class TInputImage , class TPrecision = double>
typedef InputImageType::IndexType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::IndexType

Definition at line 67 of file otbLabelImageToVectorDataFilter.h.

◆ InputImageType

template<class TInputImage , class TPrecision = double>
typedef TInputImage otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::InputImageType

Definition of the input image

Definition at line 57 of file otbLabelImageToVectorDataFilter.h.

◆ InputIndexType

template<class TInputImage , class TPrecision = double>
typedef InputImageType::IndexType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::InputIndexType

Definition at line 62 of file otbLabelImageToVectorDataFilter.h.

◆ InputPixelType

template<class TInputImage , class TPrecision = double>
typedef InputImageType::PixelType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::InputPixelType

Definition at line 61 of file otbLabelImageToVectorDataFilter.h.

◆ InternalTreeNodeType

template<class TInputImage , class TPrecision = double>
typedef DataTreeType::TreeNodeType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::InternalTreeNodeType

Definition at line 74 of file otbLabelImageToVectorDataFilter.h.

◆ LineType

template<class TInputImage , class TPrecision = double>
typedef VectorDataType::LineType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::LineType

Definition at line 77 of file otbLabelImageToVectorDataFilter.h.

◆ OGRDataSourcePointerType

template<class TInputImage , class TPrecision = double>
typedef OGRDataSourceType::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::OGRDataSourcePointerType

Definition at line 82 of file otbLabelImageToVectorDataFilter.h.

◆ OGRDataSourceType

template<class TInputImage , class TPrecision = double>
typedef ogr::DataSource otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::OGRDataSourceType

Definition at line 81 of file otbLabelImageToVectorDataFilter.h.

◆ OGRLayerType

template<class TInputImage , class TPrecision = double>
typedef ogr::Layer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::OGRLayerType

Definition at line 83 of file otbLabelImageToVectorDataFilter.h.

◆ OriginType

template<class TInputImage , class TPrecision = double>
typedef InputImageType::PointType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::OriginType

Definition at line 66 of file otbLabelImageToVectorDataFilter.h.

◆ Pointer

template<class TInputImage , class TPrecision = double>
typedef itk::SmartPointer<Self> otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::Pointer

Definition at line 50 of file otbLabelImageToVectorDataFilter.h.

◆ PointType

template<class TInputImage , class TPrecision = double>
typedef VectorDataType::PointType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::PointType

Definition at line 78 of file otbLabelImageToVectorDataFilter.h.

◆ RegionType

template<class TInputImage , class TPrecision = double>
typedef InputImageType::RegionType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::RegionType

Definition at line 64 of file otbLabelImageToVectorDataFilter.h.

◆ Self

template<class TInputImage , class TPrecision = double>
typedef LabelImageToVectorDataFilter otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::Self

typedef for the classes standards.

Definition at line 48 of file otbLabelImageToVectorDataFilter.h.

◆ SizeType

template<class TInputImage , class TPrecision = double>
typedef InputImageType::SizeType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::SizeType

Definition at line 63 of file otbLabelImageToVectorDataFilter.h.

◆ SpacingType

template<class TInputImage , class TPrecision = double>
typedef InputImageType::SpacingType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::SpacingType

Definition at line 65 of file otbLabelImageToVectorDataFilter.h.

◆ Superclass

template<class TInputImage , class TPrecision = double>
typedef VectorDataSource<VectorData<TPrecision> > otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::Superclass

Definition at line 49 of file otbLabelImageToVectorDataFilter.h.

◆ VectorDataPointerType

template<class TInputImage , class TPrecision = double>
typedef VectorDataType::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::VectorDataPointerType

Definition at line 71 of file otbLabelImageToVectorDataFilter.h.

◆ VectorDataType

template<class TInputImage , class TPrecision = double>
typedef VectorData<TPrecision> otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::VectorDataType

Definition of the output vector data.

Definition at line 70 of file otbLabelImageToVectorDataFilter.h.

◆ VertexType

template<class TInputImage , class TPrecision = double>
typedef LineType::VertexType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::VertexType

Definition at line 79 of file otbLabelImageToVectorDataFilter.h.

Constructor & Destructor Documentation

◆ LabelImageToVectorDataFilter() [1/2]

template<class TInputImage , class TPrecision >
otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::LabelImageToVectorDataFilter
protected

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Definition at line 39 of file otbLabelImageToVectorDataFilter.hxx.

◆ ~LabelImageToVectorDataFilter()

template<class TInputImage , class TPrecision = double>
otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::~LabelImageToVectorDataFilter ( )
inlineoverrideprotected

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Definition at line 108 of file otbLabelImageToVectorDataFilter.h.

◆ LabelImageToVectorDataFilter() [2/2]

template<class TInputImage , class TPrecision = double>
otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::LabelImageToVectorDataFilter ( const Self )
privatedelete

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Member Function Documentation

◆ CreateAnother()

template<class TInputImage , class TPrecision = double>
virtual::itk::LightObject::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::CreateAnother ( void  ) const

◆ GenerateData()

template<class TInputImage , class TPrecision >
void otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::GenerateData
overrideprotected

◆ GenerateInputRequestedRegion()

template<class TInputImage , class TPrecision >
void otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::GenerateInputRequestedRegion
overrideprotected

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Definition at line 83 of file otbLabelImageToVectorDataFilter.hxx.

◆ GetFieldName()

template<class TInputImage , class TPrecision = double>
virtual std::string otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::GetFieldName ( )
virtual

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

◆ GetInput()

template<class TInputImage , class TPrecision >
const LabelImageToVectorDataFilter< TInputImage, TPrecision >::InputImageType * otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::GetInput ( void  )
virtual

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Definition at line 55 of file otbLabelImageToVectorDataFilter.hxx.

◆ GetInputMask()

template<class TInputImage , class TPrecision >
const LabelImageToVectorDataFilter< TInputImage, TPrecision >::InputImageType * otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::GetInputMask ( void  )
virtual

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Definition at line 72 of file otbLabelImageToVectorDataFilter.hxx.

◆ GetNameOfClass()

template<class TInputImage , class TPrecision = double>
virtual const char* otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::GetNameOfClass ( ) const
virtual

Return the name of the class.

◆ GetUse8Connected()

template<class TInputImage , class TPrecision = double>
virtual bool otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::GetUse8Connected ( )
virtual

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

◆ New()

template<class TInputImage , class TPrecision = double>
static Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::New ( )
static

Method for management of the object factory.

◆ operator=()

template<class TInputImage , class TPrecision = double>
void otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::operator= ( const Self )
privatedelete

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

◆ SetFieldName()

template<class TInputImage , class TPrecision = double>
virtual void otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::SetFieldName ( std::string  _arg)
virtual

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

◆ SetInput()

template<class TInputImage , class TPrecision >
void otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::SetInput ( const InputImageType input)
virtual

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Definition at line 49 of file otbLabelImageToVectorDataFilter.hxx.

◆ SetInputMask()

template<class TInputImage , class TPrecision >
void otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::SetInputMask ( const InputImageType input)
virtual

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Definition at line 66 of file otbLabelImageToVectorDataFilter.hxx.

◆ SetUse8Connected()

template<class TInputImage , class TPrecision = double>
virtual void otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::SetUse8Connected ( bool  _arg)
virtual

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Member Data Documentation

◆ m_FieldName

template<class TInputImage , class TPrecision = double>
std::string otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::m_FieldName
private

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Definition at line 121 of file otbLabelImageToVectorDataFilter.h.

◆ m_Use8Connected

template<class TInputImage , class TPrecision = double>
bool otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::m_Use8Connected
private

Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.

Definition at line 122 of file otbLabelImageToVectorDataFilter.h.


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