22 #ifndef otbVectorDataToLabelMapFilter_h
23 #define otbVectorDataToLabelMapFilter_h
25 #include "itkLabelObject.h"
26 #include "itkProgressReporter.h"
28 #include "itkConceptChecking.h"
29 #include "itkContinuousIndex.h"
57 template <
class TVectorData,
class TLabelMap>
82 typedef typename OutputLabelMapType::LabelType
LabelType;
84 typedef typename OutputLabelMapType::IndexType
IndexType;
86 typedef typename OutputLabelMapType::PointType
OriginType;
94 itkStaticConstMacro(VectorDataDimension,
unsigned int, TVectorData::Dimension);
97 typedef itk::Size<itkGetStaticConstMacro(VectorDataDimension)>
SizeType;
99 typedef typename InputVectorDataType::PointType
PointType;
140 virtual void SetOrigin(
const double origin[2]);
141 virtual void SetOrigin(
const float origin[2]);
152 virtual void SetSpacing(
const SpacingType& spacing);
153 virtual void SetSpacing(
const double spacing[2]);
154 virtual void SetSpacing(
const float spacing[2]);
160 using Superclass::SetInput;
167 void GenerateOutputInformation()
override;
174 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
180 void GenerateData()
override;
215 #ifndef OTB_MANUAL_INSTANTIATION
This filter simplify and close the input polygon, making the last point equal to the first one.
Base class for filter that output LabelMap.
Convert a vector data and produce a collection of label objects for each node.
OutputLabelMapType::ConstPointer OutputLabelMapConstPointer
OutputLabelMapType::DirectionType DirectionType
VectorDataToLabelMapFilter(const Self &)=delete
InputVectorDataType::Pointer InputVectorDataPointer
itk::SmartPointer< Self > Pointer
DataNodeType::Pointer DataNodePointerType
TLabelMap OutputLabelMapType
DataNodeType::PolygonType PolygonType
InputVectorDataType::ConstPointer InputVectorDataConstPointer
OutputLabelMapType::Pointer OutputLabelMapPointer
itk::SmartPointer< const Self > ConstPointer
OutputLabelMapType::PixelType OutputLabelMapPixelType
OutputLabelMapType::SpacingType SpacingType
itk::Size< itkGetStaticConstMacro(VectorDataDimension)> SizeType
OutputLabelMapType::PointType OriginType
LabelMapSource< TLabelMap > Superclass
TVectorData InputVectorDataType
PolygonType::Pointer PolygonPointerType
OutputLabelMapPixelType m_BackgroundValue
void operator=(const Self &)=delete
InputVectorDataType::PointType PointType
OutputLabelMapType::IndexType IndexType
otb::CorrectPolygonFunctor< PolygonType > CorrectFunctorType
OutputLabelMapType::LabelType LabelType
VectorDataToLabelMapFilter Self
InputVectorDataType::DataNodeType DataNodeType
DirectionType m_Direction
InputVectorDataType::ChildrenListType ChildrenListType
~VectorDataToLabelMapFilter() override
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.