OTB
9.0.0
Orfeo Toolbox
|
#include <otbLabelImageToVectorDataFilter.h>
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 OutputVectorDataType * | GetOutput (void) |
virtual OutputVectorDataType * | GetOutput (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 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 () |
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 () |
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.
GDALPolygonize()
. But be carreful, it can create cross polygons ! Definition at line 44 of file otbLabelImageToVectorDataFilter.h.
typedef itk::SmartPointer<const Self> otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::ConstPointer |
Definition at line 51 of file otbLabelImageToVectorDataFilter.h.
typedef DataNodeType::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::DataNodePointerType |
Definition at line 76 of file otbLabelImageToVectorDataFilter.h.
typedef VectorDataType::DataNodeType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::DataNodeType |
Definition at line 75 of file otbLabelImageToVectorDataFilter.h.
typedef DataTreeType::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::DataTreePointerType |
Definition at line 73 of file otbLabelImageToVectorDataFilter.h.
typedef VectorDataType::DataTreeType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::DataTreeType |
Definition at line 72 of file otbLabelImageToVectorDataFilter.h.
typedef InputImageType::IndexType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::IndexType |
Definition at line 67 of file otbLabelImageToVectorDataFilter.h.
typedef TInputImage otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::InputImageType |
Definition of the input image
Definition at line 57 of file otbLabelImageToVectorDataFilter.h.
typedef InputImageType::IndexType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::InputIndexType |
Definition at line 62 of file otbLabelImageToVectorDataFilter.h.
typedef InputImageType::PixelType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::InputPixelType |
Definition at line 61 of file otbLabelImageToVectorDataFilter.h.
typedef DataTreeType::TreeNodeType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::InternalTreeNodeType |
Definition at line 74 of file otbLabelImageToVectorDataFilter.h.
typedef VectorDataType::LineType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::LineType |
Definition at line 77 of file otbLabelImageToVectorDataFilter.h.
typedef OGRDataSourceType::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::OGRDataSourcePointerType |
Definition at line 82 of file otbLabelImageToVectorDataFilter.h.
typedef ogr::DataSource otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::OGRDataSourceType |
Definition at line 81 of file otbLabelImageToVectorDataFilter.h.
typedef ogr::Layer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::OGRLayerType |
Definition at line 83 of file otbLabelImageToVectorDataFilter.h.
typedef InputImageType::PointType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::OriginType |
Definition at line 66 of file otbLabelImageToVectorDataFilter.h.
typedef itk::SmartPointer<Self> otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::Pointer |
Definition at line 50 of file otbLabelImageToVectorDataFilter.h.
typedef VectorDataType::PointType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::PointType |
Definition at line 78 of file otbLabelImageToVectorDataFilter.h.
typedef InputImageType::RegionType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::RegionType |
Definition at line 64 of file otbLabelImageToVectorDataFilter.h.
typedef LabelImageToVectorDataFilter otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::Self |
typedef for the classes standards.
Definition at line 48 of file otbLabelImageToVectorDataFilter.h.
typedef InputImageType::SizeType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::SizeType |
Definition at line 63 of file otbLabelImageToVectorDataFilter.h.
typedef InputImageType::SpacingType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::SpacingType |
Definition at line 65 of file otbLabelImageToVectorDataFilter.h.
typedef VectorDataSource<VectorData<TPrecision> > otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::Superclass |
Definition at line 49 of file otbLabelImageToVectorDataFilter.h.
typedef VectorDataType::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::VectorDataPointerType |
Definition at line 71 of file otbLabelImageToVectorDataFilter.h.
typedef VectorData<TPrecision> otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::VectorDataType |
Definition of the output vector data.
Definition at line 70 of file otbLabelImageToVectorDataFilter.h.
typedef LineType::VertexType otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::VertexType |
Definition at line 79 of file otbLabelImageToVectorDataFilter.h.
|
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.
|
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.
|
privatedelete |
Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.
virtual::itk::LightObject::Pointer otb::LabelImageToVectorDataFilter< TInputImage, TPrecision >::CreateAnother | ( | void | ) | const |
|
overrideprotected |
Generate Data method
Convert Input image into a OGRLayer using GDALPolygonize
Convert OGR layer into VectorData
Definition at line 109 of file otbLabelImageToVectorDataFilter.hxx.
References otb::ogr::Layer::CreateField(), otb::DOCUMENT, otb::ogr::Layer::GetLayerDefn(), otb::OGRIOHelper::New(), otb::ogr::DataSource::New(), otb::ogr::Layer::ogr(), and otb::VectorData< TPrecision, VDimension, TValuePrecision >::SetProjectionRef().
|
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.
|
virtual |
Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.
|
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.
|
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.
|
virtual |
Return the name of the class.
|
virtual |
Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.
|
static |
Method for management of the object factory.
|
privatedelete |
Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.
|
virtual |
Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.
|
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.
|
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.
|
virtual |
Set the input mask image. All pixels in the mask with a value of 0 will not be considered suitable for vectorization.
|
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.
|
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.