18 #ifndef itkLabelStatisticsKeepNObjectsImageFilter_h
19 #define itkLabelStatisticsKeepNObjectsImageFilter_h
45 template <
typename TInputImage,
typename TFeatureImage>
75 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
76 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
77 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
93 #ifdef ITK_USE_CONCEPT_CHECKING
121 itkGetConstMacro(ReverseOrdering,
bool);
122 itkSetMacro(ReverseOrdering,
bool);
123 itkBooleanMacro(ReverseOrdering);
135 this->SetAttribute(LabelObjectType::GetAttributeFromName(s));
144 this->SetNthInput(1, const_cast<TFeatureImage *>(input));
148 const FeatureImageType *
158 this->SetInput(input);
165 this->SetFeatureImage(input);
172 PrintSelf(std::ostream & os,
Indent indent)
const override;
178 GenerateInputRequestedRegion()
override;
182 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
187 GenerateData()
override;
197 #ifndef ITK_MANUAL_INSTANTIATION
198 # include "itkLabelStatisticsKeepNObjectsImageFilter.hxx"