18 #ifndef itkLabelShapeKeepNObjectsImageFilter_h
19 #define itkLabelShapeKeepNObjectsImageFilter_h
50 template <
typename TInputImage>
75 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
76 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
77 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
94 #ifdef ITK_USE_CONCEPT_CHECKING
122 itkGetConstMacro(ReverseOrdering,
bool);
123 itkSetMacro(ReverseOrdering,
bool);
124 itkBooleanMacro(ReverseOrdering);
136 this->SetAttribute(LabelObjectType::GetAttributeFromName(s));
144 PrintSelf(std::ostream & os,
Indent indent)
const override;
150 GenerateInputRequestedRegion()
override;
154 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
159 GenerateData()
override;
164 bool m_ReverseOrdering{};
169 #ifndef ITK_MANUAL_INSTANTIATION
170 # include "itkLabelShapeKeepNObjectsImageFilter.hxx"