18 #ifndef itkBinaryStatisticsKeepNObjectsImageFilter_h
19 #define itkBinaryStatisticsKeepNObjectsImageFilter_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;
101 itkSetMacro(FullyConnected,
bool);
102 itkGetConstReferenceMacro(FullyConnected,
bool);
103 itkBooleanMacro(FullyConnected);
106 #ifdef ITK_USE_CONCEPT_CHECKING
142 itkGetConstMacro(ReverseOrdering,
bool);
143 itkSetMacro(ReverseOrdering,
bool);
144 itkBooleanMacro(ReverseOrdering);
156 this->SetAttribute(LabelObjectType::GetAttributeFromName(s));
165 this->SetNthInput(1, const_cast<TFeatureImage *>(input));
169 const FeatureImageType *
179 this->SetInput(input);
186 this->SetFeatureImage(input);
193 PrintSelf(std::ostream & os,
Indent indent)
const override;
199 GenerateInputRequestedRegion()
override;
203 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
208 GenerateData()
override;
211 bool m_FullyConnected{
false };
215 bool m_ReverseOrdering{
false };
220 #ifndef ITK_MANUAL_INSTANTIATION
221 # include "itkBinaryStatisticsKeepNObjectsImageFilter.hxx"