OTB
9.0.0
Orfeo Toolbox
|
#include <otbPersistentImageToOGRDataFilter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
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< Self > | Pointer |
typedef InputImageType::RegionType | RegionType |
typedef PersistentImageToOGRDataFilter | Self |
typedef InputImageType::SizeType | SizeType |
typedef PersistentImageFilter< TImage, TImage > | Superclass |
Public Types inherited from otb::PersistentImageFilter< TImage, TImage > | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef TImage | InputImageType |
typedef TImage | OutputImageType |
typedef itk::SmartPointer< Self > | Pointer |
typedef PersistentImageFilter | Self |
typedef itk::ImageToImageFilter< TImage, TImage > | Superclass |
Public Member Functions | |
void | AllocateOutputs () |
virtual const char * | GetNameOfClass () const |
virtual void | Initialize (void) |
virtual void | Reset (void) |
virtual void | Synthetize (void) |
Public Member Functions inherited from otb::PersistentImageFilter< TImage, TImage > | |
virtual const char * | GetNameOfClass () const |
std::string | m_FieldName |
std::string | m_LayerName |
OGRwkbGeometryType | m_GeometryType |
SizeType | m_StreamSize {0,0} |
std::vector< std::string > | m_OGRLayerCreationOptions |
OGRFieldType | m_FieldType |
virtual void | SetLayerName (const char *_arg) |
virtual const char * | GetLayerName () const |
virtual void | SetFieldName (std::string _arg) |
virtual std::string | GetFieldName () |
virtual SizeType | GetStreamSize () |
virtual void | SetGeometryType (OGRwkbGeometryType _arg) |
virtual OGRwkbGeometryType | GetGeometryType () |
void | SetOGRDataSource (OGRDataSourcePointerType ogrDS) |
OGRDataSourceType * | GetOGRDataSource (void) |
void | AddOGRLayerCreationOption (const std::string &option) |
void | ClearOGRLayerCreationOptions () |
void | SetOGRLayerCreationOptions (const std::vector< std::string > &options) |
const std::vector< std::string > & | GetOGRLayerCreationOptions (void) |
virtual void | SetFieldType (OGRFieldType _arg) |
virtual OGRFieldType | GetFieldType () |
PersistentImageToOGRDataFilter () | |
virtual | ~PersistentImageToOGRDataFilter () |
void | PrintSelf (std::ostream &os, itk::Indent indent) const |
virtual void | GenerateData () |
PersistentImageToOGRDataFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
virtual OGRDataSourcePointerType | ProcessTile ()=0 |
Additional Inherited Members | |
Protected Member Functions inherited from otb::PersistentImageFilter< TImage, TImage > | |
PersistentImageFilter () | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
~PersistentImageFilter () override | |
Perform vectorization in a persistent way.
This filter is a generic filter. It is the base class of the Large scale segmentation framework. The Initialize()
method is used to create the new layer (LayerName) in the input OGRDataSource
, and the field (FieldName) in the layer. This field will contain the label of the polygon in the input image. The ProcessTile()
method is pure virtual and is implemented in sub class (
PersistentStreamingLabelImageToOGRDataFilter
). It returns a "memory" DataSource. This filter only copy each feature of the layer in the "memory" DataSource into the LayerName layer in the input OGRDataSource
set by SetOGRDataSource()
method.Definition at line 52 of file otbPersistentImageToOGRDataFilter.h.
typedef itk::SmartPointer<const Self> otb::PersistentImageToOGRDataFilter< TImage >::ConstPointer |
Definition at line 59 of file otbPersistentImageToOGRDataFilter.h.
typedef InputImageType::IndexType otb::PersistentImageToOGRDataFilter< TImage >::IndexType |
Definition at line 68 of file otbPersistentImageToOGRDataFilter.h.
typedef InputImageType::Pointer otb::PersistentImageToOGRDataFilter< TImage >::InputImagePointer |
Definition at line 65 of file otbPersistentImageToOGRDataFilter.h.
typedef TImage otb::PersistentImageToOGRDataFilter< TImage >::InputImageType |
Definition at line 62 of file otbPersistentImageToOGRDataFilter.h.
typedef InputImageType::InternalPixelType otb::PersistentImageToOGRDataFilter< TImage >::InternalPixelType |
Definition at line 70 of file otbPersistentImageToOGRDataFilter.h.
typedef OGRDataSourceType::Pointer otb::PersistentImageToOGRDataFilter< TImage >::OGRDataSourcePointerType |
Definition at line 73 of file otbPersistentImageToOGRDataFilter.h.
typedef ogr::DataSource otb::PersistentImageToOGRDataFilter< TImage >::OGRDataSourceType |
Definition at line 72 of file otbPersistentImageToOGRDataFilter.h.
typedef ogr::Feature otb::PersistentImageToOGRDataFilter< TImage >::OGRFeatureType |
Definition at line 75 of file otbPersistentImageToOGRDataFilter.h.
typedef ogr::Layer otb::PersistentImageToOGRDataFilter< TImage >::OGRLayerType |
Definition at line 74 of file otbPersistentImageToOGRDataFilter.h.
typedef InputImageType::PixelType otb::PersistentImageToOGRDataFilter< TImage >::PixelType |
Definition at line 69 of file otbPersistentImageToOGRDataFilter.h.
typedef itk::SmartPointer<Self> otb::PersistentImageToOGRDataFilter< TImage >::Pointer |
Definition at line 58 of file otbPersistentImageToOGRDataFilter.h.
typedef InputImageType::RegionType otb::PersistentImageToOGRDataFilter< TImage >::RegionType |
Definition at line 66 of file otbPersistentImageToOGRDataFilter.h.
typedef PersistentImageToOGRDataFilter otb::PersistentImageToOGRDataFilter< TImage >::Self |
Standard Self typedef
Definition at line 56 of file otbPersistentImageToOGRDataFilter.h.
typedef InputImageType::SizeType otb::PersistentImageToOGRDataFilter< TImage >::SizeType |
Definition at line 67 of file otbPersistentImageToOGRDataFilter.h.
typedef PersistentImageFilter<TImage, TImage> otb::PersistentImageToOGRDataFilter< TImage >::Superclass |
Definition at line 57 of file otbPersistentImageToOGRDataFilter.h.
|
protected |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 35 of file otbPersistentImageToOGRDataFilter.hxx.
References otb::PersistentImageToOGRDataFilter< TImage >::m_StreamSize.
|
protectedvirtual |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 44 of file otbPersistentImageToOGRDataFilter.hxx.
|
privatedelete |
Set/Get the name of the output layer to write in the ogr::DataSource
.
void otb::PersistentImageToOGRDataFilter< TImage >::AddOGRLayerCreationOption | ( | const std::string & | option | ) |
Add one option for OGR layer creation
Definition at line 61 of file otbPersistentImageToOGRDataFilter.hxx.
void otb::PersistentImageToOGRDataFilter< TImage >::AllocateOutputs |
Definition at line 88 of file otbPersistentImageToOGRDataFilter.hxx.
void otb::PersistentImageToOGRDataFilter< TImage >::ClearOGRLayerCreationOptions |
Clear all OGR layer creation options
Definition at line 68 of file otbPersistentImageToOGRDataFilter.hxx.
|
protectedvirtual |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 122 of file otbPersistentImageToOGRDataFilter.hxx.
References otb::ogr::Layer::begin(), otb::ogr::Layer::CreateFeature(), otb::ogr::Layer::end(), otb::Stopwatch::GetElapsedMilliseconds(), otb::ogr::Layer::GetLayerDefn(), otb::ogr::Layer::ogr(), otbMsgDebugMacro, otb::ogr::Feature::SetFrom(), otb::Stopwatch::StartNew(), and otb::Stopwatch::Stop().
|
virtual |
Return the Field name in which labels have been written.
|
virtual |
Get the field type for class label
|
virtual |
Get the geometry type
|
virtual |
Set/Get the name of the output layer to write in the ogr::DataSource
.
|
virtual |
Runtime information support.
PersistentImageToOGRDataFilter< TImage >::OGRDataSourceType * otb::PersistentImageToOGRDataFilter< TImage >::GetOGRDataSource | ( | void | ) |
Get the ogr::DataSource
output.
Definition at line 55 of file otbPersistentImageToOGRDataFilter.hxx.
const std::vector< std::string > & otb::PersistentImageToOGRDataFilter< TImage >::GetOGRLayerCreationOptions | ( | void | ) |
Get the OGR layer creation options
Definition at line 82 of file otbPersistentImageToOGRDataFilter.hxx.
|
virtual |
Get the size of the tile used for streaming. This is useful if you use for example the OGRFusionTileFilter
for fusioning streaming tiles.
|
virtual |
This method creates the output layer in the OGRDataSource set by the user. The name of the layer is set by SetLayerName
.
Definition at line 104 of file otbPersistentImageToOGRDataFilter.hxx.
References otb::ogr::Layer::CreateField().
|
privatedelete |
Set/Get the name of the output layer to write in the ogr::DataSource
.
|
protected |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 167 of file otbPersistentImageToOGRDataFilter.hxx.
|
privatepure virtual |
Set/Get the name of the output layer to write in the ogr::DataSource
.
|
virtual |
Reset the persistent data of the filter.
Implements otb::PersistentImageFilter< TImage, TImage >.
Definition at line 94 of file otbPersistentImageToOGRDataFilter.hxx.
|
virtual |
Set the Field Name in which labels will be written. (default is "DN") A field FieldName is created in the output layer LayerName. The Field type is Integer.
|
virtual |
Set the field type for class label
|
virtual |
Set the geometry type
|
virtual |
Set/Get the name of the output layer to write in the ogr::DataSource
.
void otb::PersistentImageToOGRDataFilter< TImage >::SetOGRDataSource | ( | OGRDataSourcePointerType | ogrDS | ) |
Set the ogr::DataSource
in which the layer LayerName will be created.
Definition at line 49 of file otbPersistentImageToOGRDataFilter.hxx.
void otb::PersistentImageToOGRDataFilter< TImage >::SetOGRLayerCreationOptions | ( | const std::vector< std::string > & | options | ) |
Set the OGR layer creation options
Definition at line 75 of file otbPersistentImageToOGRDataFilter.hxx.
|
virtual |
Synthesize the persistent data of the filter.
Implements otb::PersistentImageFilter< TImage, TImage >.
Definition at line 99 of file otbPersistentImageToOGRDataFilter.hxx.
|
private |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 154 of file otbPersistentImageToOGRDataFilter.h.
|
private |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 159 of file otbPersistentImageToOGRDataFilter.h.
|
private |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 156 of file otbPersistentImageToOGRDataFilter.h.
|
private |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 155 of file otbPersistentImageToOGRDataFilter.h.
|
private |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 158 of file otbPersistentImageToOGRDataFilter.h.
|
private |
Set/Get the name of the output layer to write in the ogr::DataSource
.
Definition at line 157 of file otbPersistentImageToOGRDataFilter.h.
Referenced by otb::PersistentImageToOGRDataFilter< TImage >::PersistentImageToOGRDataFilter().