OTB
9.0.0
Orfeo Toolbox
|
#include <otbLabelImageToOGRDataSourceFilter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::ProcessObject::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef InputImageType::IndexType | IndexType |
typedef TInputImage | InputImageType |
typedef InputImageType::IndexType | InputIndexType |
typedef InputImageType::PixelType | InputPixelType |
typedef OGRDataSourceType::Pointer | OGRDataSourcePointerType |
typedef ogr::DataSource | OGRDataSourceType |
typedef ogr::Layer | OGRLayerType |
typedef InputImageType::PointType | OriginType |
typedef itk::SmartPointer< Self > | Pointer |
typedef InputImageType::RegionType | RegionType |
typedef LabelImageToOGRDataSourceFilter | Self |
typedef InputImageType::SizeType | SizeType |
typedef InputImageType::SpacingType | SpacingType |
typedef itk::ProcessObject | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static Pointer | New () |
typedef itk::DataObject::Pointer | DataObjectPointer |
std::string | m_FieldName |
bool | m_Use8Connected |
virtual void | SetInput (const InputImageType *input) |
virtual const InputImageType * | GetInput (void) |
virtual void | SetInputMask (const InputImageType *input) |
virtual const InputImageType * | GetInputMask (void) |
virtual void | SetFieldName (std::string _arg) |
virtual std::string | GetFieldName () |
virtual void | SetUse8Connected (bool _arg) |
virtual bool | GetUse8Connected () |
const OGRDataSourceType * | GetOutput () |
LabelImageToOGRDataSourceFilter () | |
~LabelImageToOGRDataSourceFilter () override | |
void | GenerateInputRequestedRegion () override |
void | GenerateData () override |
DataObjectPointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
LabelImageToOGRDataSourceFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
this class uses GDALPolygonize()
method to transform a Label image into a "memory" OGRDataSource
. The layer in the DataSource is named "Layer". Each Feature of the layer has a Integer Field which name is specified by SetFieldName()
(default is "DN"). Label of the input image are written into this field. 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.
GDALPolygonize()
. But be carreful, it can create cross polygons ! Definition at line 48 of file otbLabelImageToOGRDataSourceFilter.h.
typedef itk::SmartPointer<const Self> otb::LabelImageToOGRDataSourceFilter< TInputImage >::ConstPointer |
Definition at line 55 of file otbLabelImageToOGRDataSourceFilter.h.
|
protected |
DataObject pointer
Definition at line 130 of file otbLabelImageToOGRDataSourceFilter.h.
typedef itk::ProcessObject::DataObjectPointerArraySizeType otb::LabelImageToOGRDataSourceFilter< TInputImage >::DataObjectPointerArraySizeType |
Definition at line 77 of file otbLabelImageToOGRDataSourceFilter.h.
typedef InputImageType::IndexType otb::LabelImageToOGRDataSourceFilter< TInputImage >::IndexType |
Definition at line 71 of file otbLabelImageToOGRDataSourceFilter.h.
typedef TInputImage otb::LabelImageToOGRDataSourceFilter< TInputImage >::InputImageType |
Definition of the input image
Definition at line 61 of file otbLabelImageToOGRDataSourceFilter.h.
typedef InputImageType::IndexType otb::LabelImageToOGRDataSourceFilter< TInputImage >::InputIndexType |
Definition at line 66 of file otbLabelImageToOGRDataSourceFilter.h.
typedef InputImageType::PixelType otb::LabelImageToOGRDataSourceFilter< TInputImage >::InputPixelType |
Definition at line 65 of file otbLabelImageToOGRDataSourceFilter.h.
typedef OGRDataSourceType::Pointer otb::LabelImageToOGRDataSourceFilter< TInputImage >::OGRDataSourcePointerType |
Definition at line 74 of file otbLabelImageToOGRDataSourceFilter.h.
typedef ogr::DataSource otb::LabelImageToOGRDataSourceFilter< TInputImage >::OGRDataSourceType |
Definition at line 73 of file otbLabelImageToOGRDataSourceFilter.h.
typedef ogr::Layer otb::LabelImageToOGRDataSourceFilter< TInputImage >::OGRLayerType |
Definition at line 75 of file otbLabelImageToOGRDataSourceFilter.h.
typedef InputImageType::PointType otb::LabelImageToOGRDataSourceFilter< TInputImage >::OriginType |
Definition at line 70 of file otbLabelImageToOGRDataSourceFilter.h.
typedef itk::SmartPointer<Self> otb::LabelImageToOGRDataSourceFilter< TInputImage >::Pointer |
Definition at line 54 of file otbLabelImageToOGRDataSourceFilter.h.
typedef InputImageType::RegionType otb::LabelImageToOGRDataSourceFilter< TInputImage >::RegionType |
Definition at line 68 of file otbLabelImageToOGRDataSourceFilter.h.
typedef LabelImageToOGRDataSourceFilter otb::LabelImageToOGRDataSourceFilter< TInputImage >::Self |
typedef for the classes standards.
Definition at line 52 of file otbLabelImageToOGRDataSourceFilter.h.
typedef InputImageType::SizeType otb::LabelImageToOGRDataSourceFilter< TInputImage >::SizeType |
Definition at line 67 of file otbLabelImageToOGRDataSourceFilter.h.
typedef InputImageType::SpacingType otb::LabelImageToOGRDataSourceFilter< TInputImage >::SpacingType |
Definition at line 69 of file otbLabelImageToOGRDataSourceFilter.h.
typedef itk::ProcessObject otb::LabelImageToOGRDataSourceFilter< TInputImage >::Superclass |
Definition at line 53 of file otbLabelImageToOGRDataSourceFilter.h.
|
protected |
DataObject pointer
Definition at line 38 of file otbLabelImageToOGRDataSourceFilter.hxx.
References otb::LabelImageToOGRDataSourceFilter< TInputImage >::MakeOutput().
|
inlineoverrideprotected |
DataObject pointer
Definition at line 120 of file otbLabelImageToOGRDataSourceFilter.h.
|
privatedelete |
DataObject pointer
virtual::itk::LightObject::Pointer otb::LabelImageToOGRDataSourceFilter< TInputImage >::CreateAnother | ( | void | ) | const |
|
overrideprotected |
Generate Data method
Definition at line 124 of file otbLabelImageToOGRDataSourceFilter.hxx.
References otb::ogr::Layer::CreateField(), otb::ogr::DataSource::New(), and otb::ogr::Layer::ogr().
|
overrideprotected |
DataObject pointer
Definition at line 98 of file otbLabelImageToOGRDataSourceFilter.hxx.
|
virtual |
Return the Field name in which labels have been written.
|
virtual |
DataObject pointer
Definition at line 70 of file otbLabelImageToOGRDataSourceFilter.hxx.
|
virtual |
DataObject pointer
Definition at line 87 of file otbLabelImageToOGRDataSourceFilter.hxx.
|
virtual |
Return the name of the class.
const LabelImageToOGRDataSourceFilter< TInputImage >::OGRDataSourceType * otb::LabelImageToOGRDataSourceFilter< TInputImage >::GetOutput |
Get the output ogr::DataSource
which is a "memory" datasource.
Definition at line 58 of file otbLabelImageToOGRDataSourceFilter.hxx.
|
virtual |
Get the value of 8-connected neighborhood option used in GDALPolygonize
|
overrideprotected |
DataObject pointer
Definition at line 52 of file otbLabelImageToOGRDataSourceFilter.hxx.
Referenced by otb::LabelImageToOGRDataSourceFilter< TInputImage >::LabelImageToOGRDataSourceFilter().
|
static |
Method for management of the object factory.
|
privatedelete |
DataObject pointer
|
virtual |
Set the Field Name in which labels will be written. (default is "DN") A field "FieldName" of type integer is created in the output memory layer.
|
virtual |
DataObject pointer
Definition at line 64 of file otbLabelImageToOGRDataSourceFilter.hxx.
|
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 81 of file otbLabelImageToOGRDataSourceFilter.hxx.
|
virtual |
Set the value of 8-connected neighborhood option used in GDALPolygonize
|
private |
DataObject pointer
Definition at line 139 of file otbLabelImageToOGRDataSourceFilter.h.
|
private |
DataObject pointer
Definition at line 140 of file otbLabelImageToOGRDataSourceFilter.h.