18 #ifndef itkStatisticsRelabelImageFilter_h
19 #define itkStatisticsRelabelImageFilter_h
44 template<
typename TInputImage,
typename TFeatureImage >
73 itkStaticConstMacro(InputImageDimension,
unsigned int,
74 TInputImage::ImageDimension);
75 itkStaticConstMacro(OutputImageDimension,
unsigned int,
76 TInputImage::ImageDimension);
77 itkStaticConstMacro(ImageDimension,
unsigned int,
78 TInputImage::ImageDimension);
96 #ifdef ITK_USE_CONCEPT_CHECKING
120 itkGetConstMacro(ReverseOrdering,
bool);
121 itkSetMacro(ReverseOrdering,
bool);
122 itkBooleanMacro(ReverseOrdering);
132 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
140 this->SetNthInput( 1, const_cast< TFeatureImage * >( input ) );
152 this->SetInput(input);
158 this->SetFeatureImage(input);
164 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
169 void GenerateInputRequestedRegion() ITK_OVERRIDE;
172 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
176 void GenerateData() ITK_OVERRIDE;
182 bool m_ReverseOrdering;
187 #ifndef ITK_MANUAL_INSTANTIATION
188 #include "itkStatisticsRelabelImageFilter.hxx"
void SetInput1(InputImageType *input)
convert a labeled image to a label collection image
OutputImageType::RegionType OutputImageRegionType
Light weight base class for most itk classes.
OutputImageType::ConstPointer OutputImageConstPointer
Superclass::AttributeType AttributeType
relabel objects according to their shape attributes
StatisticsLabelMapFilter< LabelMapType, TFeatureImage > LabelObjectValuatorType
void SetInput2(FeatureImageType *input)
FeatureImageType::ConstPointer FeatureImageConstPointer
StatisticsLabelObject< InputImagePixelType, itkGetStaticConstMacro(ImageDimension) > LabelObjectType
ImageToImageFilter< TInputImage, TInputImage > Superclass
OutputImageType::Pointer OutputImagePointer
relabel objects according to their shape attributes
A Label object to store the common attributes related to the statistics of the object.
OutputImageType::PixelType OutputImagePixelType
LabelMap< LabelObjectType > LabelMapType
LabelMapToLabelImageFilter< LabelMapType, OutputImageType > BinarizerType
StatisticsRelabelImageFilter Self
LabelObjectType::AttributeType AttributeType
LabelImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
FeatureImageType * GetFeatureImage()
void SetAttribute(const std::string &s)
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
void SetFeatureImage(TFeatureImage *input)
TInputImage OutputImageType
InputImageType::Pointer InputImagePointer
InputImageType::PixelType InputImagePixelType
SmartPointer< const Self > ConstPointer
FeatureImageType::Pointer FeatureImagePointer
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
SmartPointer< Self > Pointer
Templated n-dimensional image to store labeled objects.
InputImageType::ConstPointer InputImageConstPointer
InputImageType::RegionType InputImageRegionType
The valuator class for the StatisticsLabelObject.
#define itkConceptMacro(name, concept)
~StatisticsRelabelImageFilter() override
Base class for all data objects in ITK.
StatisticsRelabelLabelMapFilter< LabelMapType > RelabelType
FeatureImageType::PixelType FeatureImagePixelType
TFeatureImage FeatureImageType
TInputImage InputImageType
Converts a LabelMap to a labeled image.