18#ifndef itkBinaryStatisticsOpeningImageFilter_h
19#define itkBinaryStatisticsOpeningImageFilter_h
49template <
typename TInputImage,
typename TFeatureImage>
79 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
80 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
81 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
105 itkSetMacro(FullyConnected,
bool);
106 itkGetConstReferenceMacro(FullyConnected,
bool);
107 itkBooleanMacro(FullyConnected);
110#ifdef ITK_USE_CONCEPT_CHECKING
137 itkGetConstMacro(Lambda,
double);
138 itkSetMacro(Lambda,
double);
147 itkGetConstMacro(ReverseOrdering,
bool);
148 itkSetMacro(ReverseOrdering,
bool);
149 itkBooleanMacro(ReverseOrdering);
159 SetAttribute(
const std::string & s)
161 this->SetAttribute(LabelObjectType::GetAttributeFromName(s));
167 SetFeatureImage(
const TFeatureImage * input)
170 this->SetNthInput(1,
const_cast<TFeatureImage *
>(input));
184 this->SetInput(input);
191 this->SetFeatureImage(input);
198 PrintSelf(std::ostream & os,
Indent indent)
const override;
203 GenerateInputRequestedRegion()
override;
207 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
212 GenerateData()
override;
215 bool m_FullyConnected{};
219 bool m_ReverseOrdering{};
220 AttributeType m_Attribute{};
224#ifndef ITK_MANUAL_INSTANTIATION
225# include "itkBinaryStatisticsOpeningImageFilter.hxx"
Label the connected components in a binary image and produce a collection of label objects.
Remove objects based on the value of their Statistics attribute.
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::ConstPointer InputImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
TInputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
typename FeatureImageType::ConstPointer FeatureImageConstPointer
TInputImage InputImageType
typename FeatureImageType::Pointer FeatureImagePointer
typename FeatureImageType::PixelType FeatureImagePixelType
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
typename LabelObjectType::AttributeType AttributeType
TFeatureImage FeatureImageType
Base class for all data objects in ITK.
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Convert a LabelMap to a binary image.
Templated n-dimensional image to store labeled objects.
unsigned int AttributeType
Light weight base class for most itk classes.
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
The valuator class for the StatisticsLabelObject.
A Label object to store the common attributes related to the statistics of the object.
remove the objects according to the value of their statistics attribute
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType