18 #ifndef itkStatisticsRelabelImageFilter_h
19 #define itkStatisticsRelabelImageFilter_h
44 template<
typename TInputImage,
typename TFeatureImage >
75 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
76 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
77 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
94 #ifdef ITK_USE_CONCEPT_CHECKING
118 itkGetConstMacro(ReverseOrdering,
bool);
119 itkSetMacro(ReverseOrdering,
bool);
120 itkBooleanMacro(ReverseOrdering);
130 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
138 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
150 this->SetInput(input);
156 this->SetFeatureImage(input);
162 void PrintSelf(std::ostream & os,
Indent indent)
const override;
167 void GenerateInputRequestedRegion()
override;
170 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) )
override;
174 void GenerateData()
override;
183 #ifndef ITK_MANUAL_INSTANTIATION
184 #include "itkStatisticsRelabelImageFilter.hxx"
void SetInput1(InputImageType *input)
convert a labeled image to a label collection image
typename OutputImageType::RegionType OutputImageRegionType
Light weight base class for most itk classes.
typename LabelObjectType::AttributeType AttributeType
typename InputImageType::PixelType InputImagePixelType
relabel objects according to their shape attributes
typename Superclass::AttributeType AttributeType
typename InputImageType::RegionType InputImageRegionType
typename FeatureImageType::Pointer FeatureImagePointer
void SetInput2(FeatureImageType *input)
OutputImagePixelType m_BackgroundValue
TInputImage InputImageType
typename FeatureImageType::PixelType FeatureImagePixelType
typename FeatureImageType::ConstPointer FeatureImageConstPointer
relabel objects according to their shape attributes
A Label object to store the common attributes related to the statistics of the object.
typename OutputImageType::Pointer OutputImagePointer
FeatureImageType * GetFeatureImage()
void SetAttribute(const std::string &s)
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
void SetFeatureImage(TFeatureImage *input)
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
typename InputImageType::ConstPointer InputImageConstPointer
Templated n-dimensional image to store labeled objects.
TInputImage OutputImageType
typename InputImageType::Pointer InputImagePointer
TFeatureImage FeatureImageType
The valuator class for the StatisticsLabelObject.
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
AttributeType m_Attribute
Base class for all data objects in ITK.
typename OutputImageType::ConstPointer OutputImageConstPointer
typename OutputImageType::PixelType OutputImagePixelType
Converts a LabelMap to a labeled image.