18 #ifndef itkBinaryStatisticsKeepNObjectsImageFilter_h
19 #define itkBinaryStatisticsKeepNObjectsImageFilter_h
45 template<
typename TInputImage,
typename TFeatureImage >
74 itkStaticConstMacro(InputImageDimension,
unsigned int,
75 TInputImage::ImageDimension);
76 itkStaticConstMacro(OutputImageDimension,
unsigned int,
77 TInputImage::ImageDimension);
78 itkStaticConstMacro(ImageDimension,
unsigned int,
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);
162 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
170 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
182 this->SetInput(input);
188 this->SetFeatureImage(input);
194 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
199 void GenerateInputRequestedRegion() ITK_OVERRIDE;
202 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
206 void GenerateData() ITK_OVERRIDE;
211 bool m_FullyConnected;
215 bool m_ReverseOrdering;
220 #ifndef ITK_MANUAL_INSTANTIATION
221 #include "itkBinaryStatisticsKeepNObjectsImageFilter.hxx"
const FeatureImageType * GetFeatureImage()
StatisticsLabelMapFilter< LabelMapType, TFeatureImage > LabelObjectValuatorType
Light weight base class for most itk classes.
Superclass::AttributeType AttributeType
StatisticsKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
InputImageType::RegionType InputImageRegionType
StatisticsLabelObject< LabelType, itkGetStaticConstMacro(ImageDimension) > LabelObjectType
BinaryImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
FeatureImageType::ConstPointer FeatureImageConstPointer
InputImageType::Pointer InputImagePointer
LabelObjectType::AttributeType AttributeType
LabelMap< LabelObjectType > LabelMapType
void SetFeatureImage(const TFeatureImage *input)
unsigned long SizeValueType
TFeatureImage FeatureImageType
TInputImage OutputImageType
ImageToImageFilter< TInputImage, TInputImage > Superclass
~BinaryStatisticsKeepNObjectsImageFilter() override
OutputImageType::ConstPointer OutputImageConstPointer
A Label object to store the common attributes related to the statistics of the object.
void SetInput2(const FeatureImageType *input)
OutputImageType::Pointer OutputImagePointer
SmartPointer< const Self > ConstPointer
InputImageType::ConstPointer InputImageConstPointer
SmartPointer< Self > Pointer
TInputImage InputImageType
FeatureImageType::PixelType FeatureImagePixelType
keep N objects according to their statistics attributes
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
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
BinaryStatisticsKeepNObjectsImageFilter Self
The valuator class for the StatisticsLabelObject.
#define itkConceptMacro(name, concept)
FeatureImageType::Pointer FeatureImagePointer
Base class for all data objects in ITK.
Convert a LabelMap to a binary image.