18#ifndef itkBinaryShapeKeepNObjectsImageFilter_h
19#define itkBinaryShapeKeepNObjectsImageFilter_h
46template <
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));
179 bool m_FullyConnected{
false };
183 bool m_ReverseOrdering{
false };
188#ifndef ITK_MANUAL_INSTANTIATION
189# include "itkBinaryShapeKeepNObjectsImageFilter.hxx"
Label the connected components in a binary image and produce a collection of label objects.
keep N objects according to their shape attributes
typename InputImageType::ConstPointer InputImageConstPointer
void GenerateInputRequestedRegion() override
typename OutputImageType::RegionType OutputImageRegionType
TInputImage OutputImageType
typename InputImageType::PixelType InputImagePixelType
void GenerateData() override
void PrintSelf(std::ostream &os, Indent indent) const override
void SetAttribute(const std::string &s)
typename InputImageType::RegionType InputImageRegionType
void EnlargeOutputRequestedRegion(DataObject *) override
typename OutputImageType::ConstPointer OutputImageConstPointer
~BinaryShapeKeepNObjectsImageFilter() override=default
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::Pointer InputImagePointer
typename LabelObjectType::AttributeType AttributeType
BinaryShapeKeepNObjectsImageFilter()
TInputImage InputImageType
Base class for all data objects in ITK.
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Control indentation during Print() invocation.
Convert a LabelMap to a binary image.
Templated n-dimensional image to store labeled objects.
unsigned int AttributeType
Light weight base class for most itk classes.
Keep N objects according to their shape attributes.
The valuator class for the ShapeLabelObject.
A Label object to store the common attributes related to the shape of the object.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType