18 #ifndef itkBinaryStatisticsKeepNObjectsImageFilter_h
19 #define itkBinaryStatisticsKeepNObjectsImageFilter_h
46 template <
typename TInputImage,
typename TFeatureImage>
76 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
77 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
78 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
102 itkSetMacro(FullyConnected,
bool);
103 itkGetConstReferenceMacro(FullyConnected,
bool);
104 itkBooleanMacro(FullyConnected);
107 #ifdef ITK_USE_CONCEPT_CHECKING
143 itkGetConstMacro(ReverseOrdering,
bool);
144 itkSetMacro(ReverseOrdering,
bool);
145 itkBooleanMacro(ReverseOrdering);
157 this->SetAttribute(LabelObjectType::GetAttributeFromName(s));
166 this->SetNthInput(1, const_cast<TFeatureImage *>(input));
170 const FeatureImageType *
180 this->SetInput(input);
187 this->SetFeatureImage(input);
194 PrintSelf(std::ostream & os,
Indent indent)
const override;
200 GenerateInputRequestedRegion()
override;
204 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
209 GenerateData()
override;
212 bool m_FullyConnected{
false };
216 bool m_ReverseOrdering{
false };
221 #ifndef ITK_MANUAL_INSTANTIATION
222 # include "itkBinaryStatisticsKeepNObjectsImageFilter.hxx"