18#ifndef itkLabelShapeKeepNObjectsImageFilter_h
19#define itkLabelShapeKeepNObjectsImageFilter_h
50template <
typename TInputImage>
75 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
76 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
77 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
94#ifdef ITK_USE_CONCEPT_CHECKING
122 itkGetConstMacro(ReverseOrdering,
bool);
123 itkSetMacro(ReverseOrdering,
bool);
124 itkBooleanMacro(ReverseOrdering);
136 this->SetAttribute(LabelObjectType::GetAttributeFromName(s));
164 bool m_ReverseOrdering{};
169#ifndef ITK_MANUAL_INSTANTIATION
170# include "itkLabelShapeKeepNObjectsImageFilter.hxx"
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 labeled image to a label collection image
Converts a LabelMap to a labeled image.
Templated n-dimensional image to store labeled objects.
unsigned int AttributeType
keep N objects according to their shape attributes
typename OutputImageType::RegionType OutputImageRegionType
void GenerateData() override
TInputImage InputImageType
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::ConstPointer OutputImageConstPointer
LabelShapeKeepNObjectsImageFilter()
typename OutputImageType::PixelType OutputImagePixelType
TInputImage OutputImageType
typename InputImageType::ConstPointer InputImageConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
void SetAttribute(const std::string &s)
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::PixelType InputImagePixelType
~LabelShapeKeepNObjectsImageFilter() override=default
void EnlargeOutputRequestedRegion(DataObject *) override
typename InputImageType::Pointer InputImagePointer
typename LabelObjectType::AttributeType AttributeType
void GenerateInputRequestedRegion() override
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