18#ifndef itkAttributeRelabelLabelMapFilter_h
19#define itkAttributeRelabelLabelMapFilter_h
43template <
typename TImage,
44 typename TAttributeAccessor =
45 typename Functor::AttributeLabelObjectAccessor<typename TImage::LabelObjectType>>
69 static constexpr unsigned int ImageDimension = TImage::ImageDimension;
77#ifdef ITK_USE_CONCEPT_CHECKING
93 itkSetMacro(ReverseOrdering,
bool);
94 itkGetConstReferenceMacro(ReverseOrdering,
bool);
95 itkBooleanMacro(ReverseOrdering);
114 return m_Accessor(a) < m_Accessor(b);
130 return m_Accessor(a) > m_Accessor(b);
141 bool m_ReverseOrdering{};
147#ifndef ITK_MANUAL_INSTANTIATION
148# include "itkAttributeRelabelLabelMapFilter.hxx"
bool operator()(const typename LabelObjectType::Pointer &a, const typename LabelObjectType::Pointer &b)
AttributeAccessorType m_Accessor
bool operator()(const typename LabelObjectType::Pointer &a, const typename LabelObjectType::Pointer &b)
AttributeAccessorType m_Accessor
relabel objects according to their shape attributes
typename ImageType::LabelObjectType LabelObjectType
typename ImageType::IndexType IndexType
AttributeRelabelLabelMapFilter()
typename ImageType::Pointer ImagePointer
typename ImageType::ConstPointer ImageConstPointer
~AttributeRelabelLabelMapFilter() override=default
typename AttributeAccessorType::AttributeValueType AttributeValueType
void GenerateData() override
void PrintSelf(std::ostream &os, Indent indent) const override
typename ImageType::PixelType PixelType
TAttributeAccessor AttributeAccessorType
Base class for filters that takes an image as input and overwrites that image as the output.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::IndexType IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....