18 #ifndef itkLabelStatisticsOpeningImageFilter_h
19 #define itkLabelStatisticsOpeningImageFilter_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
117 itkGetConstMacro(Lambda,
double);
118 itkSetMacro(Lambda,
double);
127 itkGetConstMacro(ReverseOrdering,
bool);
128 itkSetMacro(ReverseOrdering,
bool);
129 itkBooleanMacro(ReverseOrdering);
140 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
148 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
160 this->SetInput(input);
166 this->SetFeatureImage(input);
172 void PrintSelf(std::ostream & os,
Indent indent)
const override;
177 void GenerateInputRequestedRegion()
override;
180 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) )
override;
184 void GenerateData()
override;
194 #ifndef ITK_MANUAL_INSTANTIATION
195 #include "itkLabelStatisticsOpeningImageFilter.hxx"
typename InputImageType::Pointer InputImagePointer
typename LabelObjectType::AttributeType AttributeType
convert a labeled image to a label collection image
Light weight base class for most itk classes.
typename OutputImageType::ConstPointer OutputImageConstPointer
void SetAttribute(const std::string &s)
typename Superclass::AttributeType AttributeType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::ConstPointer InputImageConstPointer
void SetInput2(const FeatureImageType *input)
typename FeatureImageType::PixelType FeatureImagePixelType
remove the objects according to the value of their statistics attribute
A Label object to store the common attributes related to the statistics of the object.
void SetInput1(const InputImageType *input)
TInputImage OutputImageType
TFeatureImage FeatureImageType
AttributeType m_Attribute
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
typename OutputImageType::Pointer OutputImagePointer
const FeatureImageType * GetFeatureImage()
typename OutputImageType::RegionType OutputImageRegionType
OutputImagePixelType m_BackgroundValue
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
void SetFeatureImage(const TFeatureImage *input)
Templated n-dimensional image to store labeled objects.
typename InputImageType::PixelType InputImagePixelType
The valuator class for the StatisticsLabelObject.
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
typename InputImageType::RegionType InputImageRegionType
remove the objects according to the value of their statistics attribute
TInputImage InputImageType
Base class for all data objects in ITK.
typename FeatureImageType::Pointer FeatureImagePointer
Converts a LabelMap to a labeled image.
typename FeatureImageType::ConstPointer FeatureImageConstPointer