18 #ifndef itkBinaryStatisticsKeepNObjectsImageFilter_h
19 #define itkBinaryStatisticsKeepNObjectsImageFilter_h
45 template<
typename TInputImage,
typename TFeatureImage >
75 TInputImage::ImageDimension);
77 TInputImage::ImageDimension);
79 TInputImage::ImageDimension);
105 itkSetMacro(FullyConnected,
bool);
106 itkGetConstReferenceMacro(FullyConnected,
bool);
107 itkBooleanMacro(FullyConnected);
110 #ifdef ITK_USE_CONCEPT_CHECKING
149 itkGetConstMacro(ReverseOrdering,
bool);
150 itkSetMacro(ReverseOrdering,
bool);
151 itkBooleanMacro(ReverseOrdering);
170 this->
SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
211 void operator=(const Self &);
223 #ifndef ITK_MANUAL_INSTANTIATION
224 #include "itkBinaryStatisticsKeepNObjectsImageFilter.hxx"
const FeatureImageType * GetFeatureImage()
~BinaryStatisticsKeepNObjectsImageFilter()
StatisticsLabelMapFilter< LabelMapType, TFeatureImage > LabelObjectValuatorType
virtual void SetAttribute(AttributeType _arg)
Light weight base class for most itk classes.
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::AttributeType AttributeType
StatisticsKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
InputImageType::RegionType InputImageRegionType
StatisticsLabelObject< LabelType, itkGetStaticConstMacro(ImageDimension) > LabelObjectType
static const unsigned int ImageDimension
BinaryImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
FeatureImageType::ConstPointer FeatureImageConstPointer
InputImageType::Pointer InputImagePointer
LabelObjectType::AttributeType AttributeType
LabelMap< LabelObjectType > LabelMapType
AttributeType m_Attribute
void SetFeatureImage(const TFeatureImage *input)
unsigned long SizeValueType
BinaryStatisticsKeepNObjectsImageFilter()
TFeatureImage FeatureImageType
TInputImage OutputImageType
ImageToImageFilter< TInputImage, TInputImage > Superclass
static AttributeType GetAttributeFromName(const std::string &s)
OutputImageType::ConstPointer OutputImageConstPointer
OutputImagePixelType m_BackgroundValue
static const unsigned int OutputImageDimension
A Label object to store the common attributes related to the statistics of the object.
virtual void SetInput(const InputImageType *image)
void SetInput2(const FeatureImageType *input)
static const unsigned int InputImageDimension
OutputImageType::Pointer OutputImagePointer
OutputImagePixelType m_ForegroundValue
SmartPointer< const Self > ConstPointer
void EnlargeOutputRequestedRegion(DataObject *) override
void GenerateInputRequestedRegion() override
InputImageType::ConstPointer InputImageConstPointer
SmartPointer< Self > Pointer
void GenerateData() override
TInputImage InputImageType
FeatureImageType::PixelType FeatureImagePixelType
keep N objects according to their statistics attributes
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
SizeValueType m_NumberOfObjects
OutputImageType::RegionType OutputImageRegionType
keep N objects according to their statistics attributes
Label the connected components in a binary image and produce a collection of label objects...
void SetAttribute(const std::string &s)
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
void SetInput1(const InputImageType *input)
Templated n-dimensional image to store labeled objects.
OutputImageType::PixelType OutputImagePixelType
InputImageType::PixelType InputImagePixelType
LabelMapToBinaryImageFilter< LabelMapType, OutputImageType > BinarizerType
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
BinaryStatisticsKeepNObjectsImageFilter Self
The valuator class for the ShapeLabelObject.
#define itkConceptMacro(name, concept)
FeatureImageType::Pointer FeatureImagePointer
Base class for all data objects in ITK.
Convert a LabelMap to a binary image.