18#ifndef itkLabelShapeKeepNObjectsImageFilter_h
19#define itkLabelShapeKeepNObjectsImageFilter_h
50template <
typename TInputImage>
118 itkGetConstMacro(ReverseOrdering,
bool);
119 itkSetMacro(ReverseOrdering,
bool);
120 itkBooleanMacro(ReverseOrdering);
165#ifndef ITK_MANUAL_INSTANTIATION
166# include "itkLabelShapeKeepNObjectsImageFilter.hxx"
Base class for all data objects in ITK.
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.
Image< typename OutputImageType::PixelType, Self::OutputImageDimension > ShapeLabelFilterOutput
LabelMapToLabelImageFilter< LabelMapType, OutputImageType > BinarizerType
SmartPointer< const Self > ConstPointer
typename OutputImageType::RegionType OutputImageRegionType
void GenerateData() override
ShapeLabelObject< InputImagePixelType, Self::ImageDimension > LabelObjectType
TInputImage InputImageType
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::ConstPointer OutputImageConstPointer
SmartPointer< Self > Pointer
LabelShapeKeepNObjectsImageFilter()
void EnlargeOutputRequestedRegion(DataObject *output) override
virtual void SetAttribute(AttributeType _arg)
typename OutputImageType::PixelType OutputImagePixelType
static constexpr unsigned int ImageDimension
TInputImage OutputImageType
typename InputImageType::ConstPointer InputImageConstPointer
SizeValueType m_NumberOfObjects
void PrintSelf(std::ostream &os, Indent indent) const override
void SetAttribute(const std::string &s)
ShapeLabelMapFilter< LabelMapType, ShapeLabelFilterOutput > LabelObjectValuatorType
LabelImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
static constexpr unsigned int OutputImageDimension
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::PixelType InputImagePixelType
OutputImagePixelType m_BackgroundValue
LabelMap< LabelObjectType > LabelMapType
~LabelShapeKeepNObjectsImageFilter() override=default
LabelShapeKeepNObjectsImageFilter Self
typename InputImageType::Pointer InputImagePointer
AttributeType m_Attribute
typename LabelObjectType::AttributeType AttributeType
ShapeKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
static constexpr unsigned int InputImageDimension
ImageToImageFilter< TInputImage, TInputImage > Superclass
void GenerateInputRequestedRegion() override
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.
static AttributeType GetAttributeFromName(const std::string &s)
unsigned int AttributeType
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType