18 #ifndef itkAttributeKeepNObjectsLabelMapFilter_h
19 #define itkAttributeKeepNObjectsLabelMapFilter_h
42 template <
typename TImage,
43 typename TAttributeAccessor =
44 typename Functor::AttributeLabelObjectAccessor<typename TImage::LabelObjectType>>
68 static constexpr
unsigned int ImageDimension = TImage::ImageDimension;
76 #ifdef ITK_USE_CONCEPT_CHECKING
92 itkSetMacro(ReverseOrdering,
bool);
93 itkGetConstReferenceMacro(ReverseOrdering,
bool);
94 itkBooleanMacro(ReverseOrdering);
109 GenerateData()
override;
112 PrintSelf(std::ostream & os,
Indent indent)
const override;
118 operator()(
const typename LabelObjectType::Pointer & a,
const typename LabelObjectType::Pointer & b)
120 return m_Accessor(a) < m_Accessor(b);
134 operator()(
const typename LabelObjectType::Pointer & a,
const typename LabelObjectType::Pointer & b)
136 return m_Accessor(a) > m_Accessor(b);
154 #ifndef ITK_MANUAL_INSTANTIATION
155 # include "itkAttributeKeepNObjectsLabelMapFilter.hxx"