22 #ifndef otbVectorDataToLabelMapWithAttributesFilter_h
23 #define otbVectorDataToLabelMapWithAttributesFilter_h
25 #include "itkLabelObject.h"
26 #include "itkProgressReporter.h"
28 #include "itkConceptChecking.h"
29 #include "itkContinuousIndex.h"
64 template <
class TVectorData,
class TLabelMap>
89 typedef typename OutputLabelMapType::LabelType
LabelType;
91 typedef typename OutputLabelMapType::IndexType
IndexType;
93 typedef typename OutputLabelMapType::PointType
OriginType;
96 typedef typename OutputLabelMapType::RegionType
RegionType;
106 itkStaticConstMacro(VectorDataDimension,
unsigned int, TVectorData::Dimension);
109 typedef itk::Size<itkGetStaticConstMacro(VectorDataDimension)>
SizeType;
111 typedef typename InputVectorDataType::PointType
PointType;
154 virtual void SetOrigin(
const double origin[2]);
155 virtual void SetOrigin(
const float origin[2]);
169 virtual void SetSpacing(
const SpacingType& spacing);
170 virtual void SetSpacing(
const double spacing[2]);
171 virtual void SetSpacing(
const float spacing[2]);
178 using Superclass::SetInput;
186 itkSetMacro(AutomaticSizeComputation,
bool);
188 itkGetMacro(AutomaticSizeComputation,
bool);
199 void GenerateOutputInformation()
override;
206 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
212 void GenerateData()
override;
254 #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.
Compute public properties of the vectordata.
itk::SmartPointer< Self > Pointer
Converts a vector data into a LabelMap.
OutputLabelMapType::SpacingType SpacingType
itk::Size< itkGetStaticConstMacro(VectorDataDimension)> SizeType
VectorDataProperties< InputVectorDataType > VectorDataPropertiesType
InputVectorDataType::PointType PointType
InputVectorDataType::DataNodeType DataNodeType
void operator=(const Self &)=delete
InputVectorDataType::Pointer InputVectorDataPointer
VectorDataPropertiesType::Pointer m_VectorDataProperties
OutputLabelMapType::LabelObjectType LabelObjectType
LabelObjectType::AttributesValueType AttributesValueType
InputVectorDataType::ChildrenListType ChildrenListType
PolygonType::Pointer PolygonPointerType
VectorDataToLabelMapWithAttributesFilter(const Self &)=delete
VectorDataToLabelMapWithAttributesFilter Self
DataNodeType::Pointer DataNodePointerType
~VectorDataToLabelMapWithAttributesFilter() override
DirectionType m_Direction
OutputLabelMapType::PointType OriginType
OutputLabelMapType::RegionType RegionType
InputVectorDataType::ConstPointer InputVectorDataConstPointer
TVectorData InputVectorDataType
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
OutputLabelMapType::IndexType IndexType
LabelMapSource< TLabelMap > Superclass
OutputLabelMapType::PixelType OutputLabelMapPixelType
OutputLabelMapPixelType m_BackgroundValue
DataNodeType::PolygonType PolygonType
OutputLabelMapType::DirectionType DirectionType
OutputLabelMapType::Pointer OutputLabelMapPointer
OutputLabelMapType::LabelType LabelType
TLabelMap OutputLabelMapType
otb::CorrectPolygonFunctor< PolygonType > CorrectFunctorType
bool m_AutomaticSizeComputation
OutputLabelMapType::ConstPointer OutputLabelMapConstPointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.