18 #ifndef itkLabelStatisticsKeepNObjectsImageFilter_h
19 #define itkLabelStatisticsKeepNObjectsImageFilter_h
45 template<
typename TInputImage,
typename TFeatureImage >
76 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
77 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
78 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
95 #ifdef ITK_USE_CONCEPT_CHECKING
126 itkGetConstMacro(ReverseOrdering,
bool);
127 itkSetMacro(ReverseOrdering,
bool);
128 itkBooleanMacro(ReverseOrdering);
139 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
147 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
159 this->SetInput(input);
165 this->SetFeatureImage(input);
171 void PrintSelf(std::ostream & os,
Indent indent)
const override;
176 void GenerateInputRequestedRegion()
override;
179 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) )
override;
183 void GenerateData()
override;
193 #ifndef ITK_MANUAL_INSTANTIATION
194 #include "itkLabelStatisticsKeepNObjectsImageFilter.hxx"
typename OutputImageType::PixelType OutputImagePixelType
TInputImage InputImageType
convert a labeled image to a label collection image
Light weight base class for most itk classes.
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
TInputImage OutputImageType
typename Superclass::AttributeType AttributeType
unsigned long SizeValueType
typename FeatureImageType::PixelType FeatureImagePixelType
typename OutputImageType::Pointer OutputImagePointer
void SetInput1(const InputImageType *input)
A Label object to store the common attributes related to the statistics of the object.
keep N objects according to their statistics attributes
typename FeatureImageType::Pointer FeatureImagePointer
typename OutputImageType::RegionType OutputImageRegionType
void SetInput2(const FeatureImageType *input)
OutputImagePixelType m_BackgroundValue
keep N objects according to their statistics attributes
typename OutputImageType::ConstPointer OutputImageConstPointer
typename LabelObjectType::AttributeType AttributeType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
void SetAttribute(const std::string &s)
TFeatureImage FeatureImageType
AttributeType m_Attribute
SizeValueType m_NumberOfObjects
void SetFeatureImage(const TFeatureImage *input)
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::ConstPointer InputImageConstPointer
Control indentation during Print() invocation.
typename FeatureImageType::ConstPointer FeatureImageConstPointer
Templated n-dimensional image to store labeled objects.
const FeatureImageType * GetFeatureImage()
typename InputImageType::RegionType InputImageRegionType
The valuator class for the StatisticsLabelObject.
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.
Converts a LabelMap to a labeled image.