18#ifndef itkLabelStatisticsKeepNObjectsImageFilter_h
19#define itkLabelStatisticsKeepNObjectsImageFilter_h
45template <
typename TInputImage,
typename TFeatureImage>
75 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
76 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
77 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
93#ifdef ITK_USE_CONCEPT_CHECKING
121 itkGetConstMacro(ReverseOrdering,
bool);
122 itkSetMacro(ReverseOrdering,
bool);
123 itkBooleanMacro(ReverseOrdering);
135 this->SetAttribute(LabelObjectType::GetAttributeFromName(s));
144 this->SetNthInput(1,
const_cast<TFeatureImage *
>(input));
148 const FeatureImageType *
158 this->SetInput(input);
165 this->SetFeatureImage(input);
192 bool m_ReverseOrdering{};
197#ifndef ITK_MANUAL_INSTANTIATION
198# include "itkLabelStatisticsKeepNObjectsImageFilter.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.
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 statistics attributes
void SetInput2(const FeatureImageType *input)
TInputImage InputImageType
typename InputImageType::Pointer InputImagePointer
void GenerateData() override
void GenerateInputRequestedRegion() override
typename FeatureImageType::PixelType FeatureImagePixelType
typename LabelObjectType::AttributeType AttributeType
TInputImage OutputImageType
typename FeatureImageType::Pointer FeatureImagePointer
void PrintSelf(std::ostream &os, Indent indent) const override
void EnlargeOutputRequestedRegion(DataObject *) override
typename OutputImageType::ConstPointer OutputImageConstPointer
void SetFeatureImage(const TFeatureImage *input)
typename InputImageType::PixelType InputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
LabelStatisticsKeepNObjectsImageFilter()
void SetAttribute(const std::string &s)
const FeatureImageType * GetFeatureImage()
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::RegionType InputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
typename FeatureImageType::ConstPointer FeatureImageConstPointer
void SetInput1(const InputImageType *input)
typename InputImageType::ConstPointer InputImageConstPointer
TFeatureImage FeatureImageType
~LabelStatisticsKeepNObjectsImageFilter() override=default
Light weight base class for most itk classes.
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
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.
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