18 #ifndef itkAttributeUniqueLabelMapFilter_h
19 #define itkAttributeUniqueLabelMapFilter_h
46 template <
typename TImage,
47 typename TAttributeAccessor =
48 typename Functor::AttributeLabelObjectAccessor<typename TImage::LabelObjectType>>
71 using LineType =
typename LabelObjectType::LineType;
74 static constexpr
unsigned int ImageDimension = TImage::ImageDimension;
82 #ifdef ITK_USE_CONCEPT_CHECKING
98 itkSetMacro(ReverseOrdering,
bool);
99 itkGetConstReferenceMacro(ReverseOrdering,
bool);
100 itkBooleanMacro(ReverseOrdering);
108 GenerateData()
override;
111 PrintSelf(std::ostream & os,
Indent indent)
const override;
118 using LineType =
typename LabelObjectType::LineType;
123 this->labelObject = lo;
135 for (
int i = ImageDimension - 1; i >= 0; i--)
137 if (lla.
line.GetIndex()[i] > llb.
line.GetIndex()[i])
141 else if (lla.
line.GetIndex()[i] < llb.
line.GetIndex()[i])
154 #ifndef ITK_MANUAL_INSTANTIATION
155 # include "itkAttributeUniqueLabelMapFilter.hxx"