22 #ifndef otbVectorDataToLabelMapFilter_h
23 #define otbVectorDataToLabelMapFilter_h
25 #include "itkLabelObject.h"
26 #include "itkProgressReporter.h"
27 #include "itkBarrier.h"
28 #include "itkConceptChecking.h"
29 #include "itkContinuousIndex.h"
57 template <
class TVectorData,
class TLabelMap>
83 typedef typename OutputLabelMapType::LabelType
LabelType;
85 typedef typename OutputLabelMapType::IndexType
IndexType;
87 typedef typename OutputLabelMapType::PointType
OriginType;
95 itkStaticConstMacro(VectorDataDimension,
unsigned int, TVectorData::Dimension);
98 typedef itk::Size<itkGetStaticConstMacro(VectorDataDimension)>
SizeType;
100 typedef typename InputVectorDataType::PointType
PointType;
136 itkGetConstReferenceMacro(Size,
SizeType);
141 virtual void SetOrigin(
const double origin[2]);
142 virtual void SetOrigin(
const float origin[2]);
145 itkGetConstReferenceMacro(Origin,
OriginType);
148 itkGetConstReferenceMacro(StartIndex,
IndexType);
153 virtual void SetSpacing(
const SpacingType& spacing);
154 virtual void SetSpacing(
const double spacing[2]);
155 virtual void SetSpacing(
const float spacing[2]);
161 using Superclass::SetInput;
168 void GenerateOutputInformation()
override;
175 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
181 void GenerateData()
override;
196 void operator=(
const Self&) =
delete;
198 void ProcessNode(InternalTreeNodeType* source);
216 #ifndef OTB_MANUAL_INSTANTIATION