18#ifndef itkBinaryStatisticsKeepNObjectsImageFilter_h
19#define itkBinaryStatisticsKeepNObjectsImageFilter_h
45template <
typename TInputImage,
typename TFeatureImage>
101 itkSetMacro(FullyConnected,
bool);
102 itkGetConstReferenceMacro(FullyConnected,
bool);
103 itkBooleanMacro(FullyConnected);
138 itkGetConstMacro(ReverseOrdering,
bool);
139 itkSetMacro(ReverseOrdering,
bool);
140 itkBooleanMacro(ReverseOrdering);
161 this->
SetNthInput(1,
const_cast<TFeatureImage *
>(input));
165 const FeatureImageType *
216#ifndef ITK_MANUAL_INSTANTIATION
217# include "itkBinaryStatisticsKeepNObjectsImageFilter.hxx"
Label the connected components in a binary image and produce a collection of label objects.
TFeatureImage FeatureImageType
typename InputImageType::Pointer InputImagePointer
OutputImagePixelType m_ForegroundValue
void SetInput1(const InputImageType *input)
void GenerateInputRequestedRegion() override
typename InputImageType::RegionType InputImageRegionType
TInputImage InputImageType
BinaryStatisticsKeepNObjectsImageFilter Self
SmartPointer< Self > Pointer
typename OutputImageType::ConstPointer OutputImageConstPointer
void EnlargeOutputRequestedRegion(DataObject *output) override
typename InputImageType::PixelType InputImagePixelType
typename FeatureImageType::ConstPointer FeatureImageConstPointer
typename FeatureImageType::Pointer FeatureImagePointer
LabelMapToBinaryImageFilter< LabelMapType, OutputImageType > BinarizerType
void GenerateData() override
typename InputImageType::ConstPointer InputImageConstPointer
AttributeType m_Attribute
typename OutputImageType::PixelType OutputImagePixelType
const FeatureImageType * GetFeatureImage()
OutputImagePixelType m_BackgroundValue
typename FeatureImageType::PixelType FeatureImagePixelType
BinaryStatisticsKeepNObjectsImageFilter()
void PrintSelf(std::ostream &os, Indent indent) const override
LabelMap< LabelObjectType > LabelMapType
StatisticsLabelObject< LabelType, Self::ImageDimension > LabelObjectType
void SetFeatureImage(const TFeatureImage *input)
StatisticsKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
static constexpr unsigned int InputImageDimension
typename OutputImageType::RegionType OutputImageRegionType
typename LabelObjectType::AttributeType AttributeType
TInputImage OutputImageType
ImageToImageFilter< TInputImage, TInputImage > Superclass
~BinaryStatisticsKeepNObjectsImageFilter() override=default
BinaryImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
typename OutputImageType::Pointer OutputImagePointer
SizeValueType m_NumberOfObjects
StatisticsLabelMapFilter< LabelMapType, TFeatureImage > LabelObjectValuatorType
void SetAttribute(const std::string &s)
static constexpr unsigned int OutputImageDimension
SmartPointer< const Self > ConstPointer
void SetInput2(const FeatureImageType *input)
static constexpr unsigned int ImageDimension
virtual void SetAttribute(AttributeType _arg)
Base class for all data objects in ITK.
virtual void SetInput(const InputImageType *input)
Control indentation during Print() invocation.
Convert a LabelMap to a binary image.
Templated n-dimensional image to store labeled objects.
virtual void SetNthInput(DataObjectPointerArraySizeType idx, DataObject *input)
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Implements transparent reference counting.
keep N objects according to their statistics attributes
The valuator class for the StatisticsLabelObject.
A Label object to store the common attributes related to the statistics of the object.
static AttributeType GetAttributeFromName(const std::string &s)
unsigned int AttributeType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType