18#ifndef itkBinaryShapeKeepNObjectsImageFilter_h
19#define itkBinaryShapeKeepNObjectsImageFilter_h
46template <
typename TInputImage>
98 itkSetMacro(FullyConnected,
bool);
99 itkGetConstReferenceMacro(FullyConnected,
bool);
100 itkBooleanMacro(FullyConnected);
135 itkGetConstMacro(ReverseOrdering,
bool);
136 itkSetMacro(ReverseOrdering,
bool);
137 itkBooleanMacro(ReverseOrdering);
184#ifndef ITK_MANUAL_INSTANTIATION
185# include "itkBinaryShapeKeepNObjectsImageFilter.hxx"
Label the connected components in a binary image and produce a collection of label objects.
BinaryShapeKeepNObjectsImageFilter Self
LabelMap< LabelObjectType > LabelMapType
typename InputImageType::ConstPointer InputImageConstPointer
OutputImagePixelType m_ForegroundValue
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)
SmartPointer< Self > Pointer
LabelMapToBinaryImageFilter< LabelMapType, OutputImageType > BinarizerType
AttributeType m_Attribute
static constexpr unsigned int ImageDimension
void EnlargeOutputRequestedRegion(DataObject *output) override
ShapeLabelMapFilter< LabelMapType, ShapeLabelFilterOutput > LabelObjectValuatorType
SizeValueType m_NumberOfObjects
typename InputImageType::RegionType InputImageRegionType
virtual void SetAttribute(AttributeType _arg)
typename OutputImageType::ConstPointer OutputImageConstPointer
OutputImagePixelType m_BackgroundValue
~BinaryShapeKeepNObjectsImageFilter() override=default
ShapeLabelObject< LabelType, Self::ImageDimension > LabelObjectType
ShapeKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::Pointer OutputImagePointer
static constexpr unsigned int InputImageDimension
ImageToImageFilter< TInputImage, TInputImage > Superclass
typename InputImageType::Pointer InputImagePointer
BinaryImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
Image< typename OutputImageType::PixelType, Self::OutputImageDimension > ShapeLabelFilterOutput
typename LabelObjectType::AttributeType AttributeType
static constexpr unsigned int OutputImageDimension
BinaryShapeKeepNObjectsImageFilter()
TInputImage InputImageType
SmartPointer< const Self > ConstPointer
Base class for all data objects in ITK.
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.
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