18 #ifndef itkLabelStatisticsKeepNObjectsImageFilter_h
19 #define itkLabelStatisticsKeepNObjectsImageFilter_h
45 template<
typename TInputImage,
typename TFeatureImage >
75 TInputImage::ImageDimension);
77 TInputImage::ImageDimension);
79 TInputImage::ImageDimension);
97 #ifdef ITK_USE_CONCEPT_CHECKING
128 itkGetConstMacro(ReverseOrdering,
bool);
129 itkSetMacro(ReverseOrdering,
bool);
130 itkBooleanMacro(ReverseOrdering);
149 this->
SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
190 void operator=(const Self &);
200 #ifndef ITK_MANUAL_INSTANTIATION
201 #include "itkLabelStatisticsKeepNObjectsImageFilter.hxx"
InputImageType::Pointer InputImagePointer
void GenerateData() override
convert a labeled image to a label collection image
Light weight base class for most itk classes.
LabelMap< LabelObjectType > LabelMapType
TFeatureImage FeatureImageType
Superclass::AttributeType AttributeType
FeatureImageType::ConstPointer FeatureImageConstPointer
ImageToImageFilter< TInputImage, TInputImage > Superclass
InputImageType::RegionType InputImageRegionType
LabelImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
virtual void SetAttribute(AttributeType _arg)
SmartPointer< const Self > ConstPointer
unsigned long SizeValueType
InputImageType::PixelType InputImagePixelType
void GenerateInputRequestedRegion() override
static AttributeType GetAttributeFromName(const std::string &s)
StatisticsKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
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
virtual void SetInput(const InputImageType *image)
static const unsigned int OutputImageDimension
OutputImageType::PixelType OutputImagePixelType
LabelStatisticsKeepNObjectsImageFilter()
void SetInput2(const FeatureImageType *input)
FeatureImageType::Pointer FeatureImagePointer
StatisticsLabelMapFilter< LabelMapType, TFeatureImage > LabelObjectValuatorType
LabelObjectType::AttributeType AttributeType
~LabelStatisticsKeepNObjectsImageFilter()
OutputImagePixelType m_BackgroundValue
keep N objects according to their statistics attributes
void PrintSelf(std::ostream &os, Indent indent) const override
OutputImageType::ConstPointer OutputImageConstPointer
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
void SetAttribute(const std::string &s)
AttributeType m_Attribute
SizeValueType m_NumberOfObjects
LabelStatisticsKeepNObjectsImageFilter Self
void EnlargeOutputRequestedRegion(DataObject *) override
void SetFeatureImage(const TFeatureImage *input)
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
static const unsigned int InputImageDimension
InputImageType::ConstPointer InputImageConstPointer
Templated n-dimensional image to store labeled objects.
const FeatureImageType * GetFeatureImage()
OutputImageType::RegionType OutputImageRegionType
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
SmartPointer< Self > Pointer
The valuator class for the ShapeLabelObject.
static const unsigned int ImageDimension
OutputImageType::Pointer OutputImagePointer
#define itkConceptMacro(name, concept)
FeatureImageType::PixelType FeatureImagePixelType
StatisticsLabelObject< InputImagePixelType, itkGetStaticConstMacro(ImageDimension) > LabelObjectType
TInputImage InputImageType
Base class for all data objects in ITK.
LabelMapToLabelImageFilter< LabelMapType, OutputImageType > BinarizerType
Converts a LabelMap to a labeled image.
TInputImage OutputImageType