|
ITK
5.3.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkLabelStatisticsKeepNObjectsImageFilter_h
19 #define itkLabelStatisticsKeepNObjectsImageFilter_h
45 template <
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);
172 PrintSelf(std::ostream & os,
Indent indent)
const override;
178 GenerateInputRequestedRegion()
override;
182 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
187 GenerateData()
override;
197 #ifndef ITK_MANUAL_INSTANTIATION
198 # include "itkLabelStatisticsKeepNObjectsImageFilter.hxx"
unsigned int AttributeType
SmartPointer< Self > Pointer
typename InputImageType::RegionType InputImageRegionType
SmartPointer< const Self > ConstPointer
typename FeatureImageType::PixelType FeatureImagePixelType
The valuator class for the StatisticsLabelObject.
typename InputImageType::ConstPointer InputImageConstPointer
typename FeatureImageType::ConstPointer FeatureImageConstPointer
convert a labeled image to a label collection image
A Label object to store the common attributes related to the statistics of the object.
Control indentation during Print() invocation.
keep N objects according to their statistics attributes
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::ConstPointer OutputImageConstPointer
void SetInput2(const FeatureImageType *input)
Templated n-dimensional image to store labeled objects.
TInputImage OutputImageType
keep N objects according to their statistics attributes
Base class for filters that take an image as input and produce an image as output.
Light weight base class for most itk classes.
ImageBaseType::RegionType RegionType
typename OutputImageType::PixelType OutputImagePixelType
TInputImage InputImageType
TFeatureImage FeatureImageType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType m_NumberOfObjects
Converts a LabelMap to a labeled image.
void SetAttribute(const std::string &s)
void SetFeatureImage(const TFeatureImage *input)
typename LabelObjectType::AttributeType AttributeType
OutputImagePixelType m_BackgroundValue
typename FeatureImageType::Pointer FeatureImagePointer
AttributeType m_Attribute
void SetInput1(const InputImageType *input)
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
typename OutputImageType::Pointer OutputImagePointer
unsigned long SizeValueType
typename OutputImageType::RegionType OutputImageRegionType
typename InputImageType::PixelType InputImagePixelType
Base class for all data objects in ITK.
const FeatureImageType * GetFeatureImage()