18 #ifndef itkLabelStatisticsKeepNObjectsImageFilter_h
19 #define itkLabelStatisticsKeepNObjectsImageFilter_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);
97 #ifdef ITK_USE_CONCEPT_CHECKING
128 itkGetConstMacro(ReverseOrdering,
bool);
129 itkSetMacro(ReverseOrdering,
bool);
130 itkBooleanMacro(ReverseOrdering);
141 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
149 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
161 this->SetInput(input);
167 this->SetFeatureImage(input);
173 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
178 void GenerateInputRequestedRegion() ITK_OVERRIDE;
181 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
185 void GenerateData() ITK_OVERRIDE;
192 bool m_ReverseOrdering;
197 #ifndef ITK_MANUAL_INSTANTIATION
198 #include "itkLabelStatisticsKeepNObjectsImageFilter.hxx"
InputImageType::Pointer InputImagePointer
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
~LabelStatisticsKeepNObjectsImageFilter() override
InputImageType::RegionType InputImageRegionType
LabelImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
SmartPointer< const Self > ConstPointer
unsigned long SizeValueType
InputImageType::PixelType InputImagePixelType
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
OutputImageType::PixelType OutputImagePixelType
void SetInput2(const FeatureImageType *input)
FeatureImageType::Pointer FeatureImagePointer
StatisticsLabelMapFilter< LabelMapType, TFeatureImage > LabelObjectValuatorType
LabelObjectType::AttributeType AttributeType
keep N objects according to their statistics attributes
OutputImageType::ConstPointer OutputImageConstPointer
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
void SetAttribute(const std::string &s)
LabelStatisticsKeepNObjectsImageFilter Self
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.
InputImageType::ConstPointer InputImageConstPointer
Templated n-dimensional image to store labeled objects.
const FeatureImageType * GetFeatureImage()
OutputImageType::RegionType OutputImageRegionType
SmartPointer< Self > Pointer
The valuator class for the StatisticsLabelObject.
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