18 #ifndef itkBinaryShapeKeepNObjectsImageFilter_h
19 #define itkBinaryShapeKeepNObjectsImageFilter_h
46 template <
typename TInputImage>
71 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
72 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
73 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
98 itkSetMacro(FullyConnected,
bool);
99 itkGetConstReferenceMacro(FullyConnected,
bool);
100 itkBooleanMacro(FullyConnected);
103 #ifdef ITK_USE_CONCEPT_CHECKING
139 itkGetConstMacro(ReverseOrdering,
bool);
140 itkSetMacro(ReverseOrdering,
bool);
141 itkBooleanMacro(ReverseOrdering);
153 this->SetAttribute(LabelObjectType::GetAttributeFromName(s));
161 PrintSelf(std::ostream & os,
Indent indent)
const override;
167 GenerateInputRequestedRegion()
override;
171 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
176 GenerateData()
override;
179 bool m_FullyConnected{
false };
183 bool m_ReverseOrdering{
false };
188 #ifndef ITK_MANUAL_INSTANTIATION
189 # include "itkBinaryShapeKeepNObjectsImageFilter.hxx"