18#ifndef itkStatisticsRelabelImageFilter_h
19#define itkStatisticsRelabelImageFilter_h
44template <
typename TInputImage,
typename TFeatureImage>
74 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
75 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
76 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
92#ifdef ITK_USE_CONCEPT_CHECKING
113 itkGetConstMacro(ReverseOrdering,
bool);
114 itkSetMacro(ReverseOrdering,
bool);
115 itkBooleanMacro(ReverseOrdering);
126 this->SetAttribute(LabelObjectType::GetAttributeFromName(s));
135 this->SetNthInput(1,
const_cast<TFeatureImage *
>(input));
149 this->SetInput(input);
156 this->SetFeatureImage(input);
182 bool m_ReverseOrdering{};
187#ifndef ITK_MANUAL_INSTANTIATION
188# include "itkStatisticsRelabelImageFilter.hxx"
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 labeled image to a label collection image
Converts a LabelMap to a labeled 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.
relabel objects according to their shape attributes
typename InputImageType::RegionType InputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::Pointer OutputImagePointer
TFeatureImage FeatureImageType
typename InputImageType::ConstPointer InputImageConstPointer
typename FeatureImageType::PixelType FeatureImagePixelType
typename FeatureImageType::Pointer FeatureImagePointer
typename LabelObjectType::AttributeType AttributeType
void SetAttribute(const std::string &s)
TInputImage OutputImageType
void SetInput1(InputImageType *input)
StatisticsRelabelImageFilter()
void SetInput2(FeatureImageType *input)
void EnlargeOutputRequestedRegion(DataObject *) override
void SetFeatureImage(TFeatureImage *input)
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::Pointer InputImagePointer
void GenerateInputRequestedRegion() override
typename InputImageType::PixelType InputImagePixelType
FeatureImageType * GetFeatureImage()
void GenerateData() override
typename FeatureImageType::ConstPointer FeatureImageConstPointer
TInputImage InputImageType
~StatisticsRelabelImageFilter() override=default
typename OutputImageType::ConstPointer OutputImageConstPointer
relabel objects according to their shape attributes
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....