18 #ifndef itkBinaryShapeKeepNObjectsImageFilter_h
19 #define itkBinaryShapeKeepNObjectsImageFilter_h
46 template<
typename TInputImage >
72 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
73 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
74 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
101 itkSetMacro(FullyConnected,
bool);
102 itkGetConstReferenceMacro(FullyConnected,
bool);
103 itkBooleanMacro(FullyConnected);
106 #ifdef ITK_USE_CONCEPT_CHECKING
145 itkGetConstMacro(ReverseOrdering,
bool);
146 itkSetMacro(ReverseOrdering,
bool);
147 itkBooleanMacro(ReverseOrdering);
158 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
165 void PrintSelf(std::ostream & os,
Indent indent)
const override;
170 void GenerateInputRequestedRegion()
override;
173 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) )
override;
177 void GenerateData()
override;
180 bool m_FullyConnected{
false};
184 bool m_ReverseOrdering{
false};
189 #ifndef ITK_MANUAL_INSTANTIATION
190 #include "itkBinaryShapeKeepNObjectsImageFilter.hxx"
Light weight base class for most itk classes.
typename LabelObjectType::AttributeType AttributeType
typename OutputImageType::Pointer OutputImagePointer
unsigned long SizeValueType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::PixelType InputImagePixelType
TInputImage OutputImageType
typename InputImageType::ConstPointer InputImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
A Label object to store the common attributes related to the shape of the object. ...
TInputImage InputImageType
Keep N objects according to their shape attributes.
OutputImagePixelType m_ForegroundValue
Label the connected components in a binary image and produce a collection of label objects...
Base class for filters that take an image as input and produce an image as output.
AttributeType m_Attribute
Control indentation during Print() invocation.
Templated n-dimensional image to store labeled objects.
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
keep N objects according to their shape attributes
The valuator class for the ShapeLabelObject.
void SetAttribute(const std::string &s)
typename Superclass::AttributeType AttributeType
Base class for all data objects in ITK.
Templated n-dimensional image class.
typename OutputImageType::RegionType OutputImageRegionType
OutputImagePixelType m_BackgroundValue
Convert a LabelMap to a binary image.