18#ifndef itkLabelStatisticsKeepNObjectsImageFilter_h
19#define itkLabelStatisticsKeepNObjectsImageFilter_h
45template <
typename TInputImage,
typename TFeatureImage>
117 itkGetConstMacro(ReverseOrdering,
bool);
118 itkSetMacro(ReverseOrdering,
bool);
119 itkBooleanMacro(ReverseOrdering);
140 this->
SetNthInput(1,
const_cast<TFeatureImage *
>(input));
144 const FeatureImageType *
193#ifndef ITK_MANUAL_INSTANTIATION
194# include "itkLabelStatisticsKeepNObjectsImageFilter.hxx"
Base class for all data objects in ITK.
virtual void SetInput(const InputImageType *input)
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.
void SetInput2(const FeatureImageType *input)
TInputImage InputImageType
LabelStatisticsKeepNObjectsImageFilter Self
OutputImagePixelType m_BackgroundValue
StatisticsLabelObject< InputImagePixelType, Self::ImageDimension > LabelObjectType
typename InputImageType::Pointer InputImagePointer
void GenerateData() override
void GenerateInputRequestedRegion() override
typename FeatureImageType::PixelType FeatureImagePixelType
typename LabelObjectType::AttributeType AttributeType
TInputImage OutputImageType
typename FeatureImageType::Pointer FeatureImagePointer
static constexpr unsigned int InputImageDimension
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetAttribute(AttributeType _arg)
ImageToImageFilter< TInputImage, TInputImage > Superclass
typename OutputImageType::ConstPointer OutputImageConstPointer
SmartPointer< Self > Pointer
void SetFeatureImage(const TFeatureImage *input)
SizeValueType m_NumberOfObjects
typename InputImageType::PixelType InputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
LabelMapToLabelImageFilter< LabelMapType, OutputImageType > BinarizerType
LabelStatisticsKeepNObjectsImageFilter()
void SetAttribute(const std::string &s)
const FeatureImageType * GetFeatureImage()
StatisticsLabelMapFilter< LabelMapType, TFeatureImage > LabelObjectValuatorType
LabelMap< LabelObjectType > LabelMapType
typename OutputImageType::Pointer OutputImagePointer
SmartPointer< const Self > ConstPointer
void EnlargeOutputRequestedRegion(DataObject *output) override
typename InputImageType::RegionType InputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
static constexpr unsigned int OutputImageDimension
typename FeatureImageType::ConstPointer FeatureImageConstPointer
LabelImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
void SetInput1(const InputImageType *input)
typename InputImageType::ConstPointer InputImageConstPointer
TFeatureImage FeatureImageType
~LabelStatisticsKeepNObjectsImageFilter() override=default
StatisticsKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
static constexpr unsigned int ImageDimension
AttributeType m_Attribute
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