18 #ifndef itkAttributeRelabelLabelMapFilter_h
19 #define itkAttributeRelabelLabelMapFilter_h
42 template<
typename TImage,
typename TAttributeAccessor=
43 typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType > >
66 itkStaticConstMacro(ImageDimension,
unsigned int,
67 TImage::ImageDimension);
76 #ifdef ITK_USE_CONCEPT_CHECKING
92 itkSetMacro( ReverseOrdering,
bool );
93 itkGetConstReferenceMacro( ReverseOrdering,
bool );
94 itkBooleanMacro( ReverseOrdering );
101 void GenerateData() ITK_OVERRIDE;
103 void PrintSelf(std::ostream& os,
Indent indent) const ITK_OVERRIDE;
108 bool operator()(
const typename LabelObjectType::Pointer & a,
const typename LabelObjectType::Pointer & b )
110 return m_Accessor( a ) < m_Accessor( b );
120 bool operator()(
const typename LabelObjectType::Pointer & a,
const typename LabelObjectType::Pointer & b )
122 return m_Accessor( a ) > m_Accessor( b );
138 #ifndef ITK_MANUAL_INSTANTIATION
139 #include "itkAttributeRelabelLabelMapFilter.hxx"
InPlaceLabelMapFilter< TImage > Superclass
Light weight base class for most itk classes.
bool operator()(const typename LabelObjectType::Pointer &a, const typename LabelObjectType::Pointer &b)
AttributeAccessorType m_Accessor
ImageType::LabelObjectType LabelObjectType
~AttributeRelabelLabelMapFilter() override
ImageType::PixelType PixelType
LabelObjectType::LabelType AttributeValueType
ImageType::Pointer ImagePointer
SmartPointer< Self > Pointer
ImageType::IndexType IndexType
ImageType::ConstPointer ImageConstPointer
bool operator()(const typename LabelObjectType::Pointer &a, const typename LabelObjectType::Pointer &b)
AttributeAccessorType::AttributeValueType AttributeValueType
Base class for filters that takes an image as input and overwrites that image as the output...
relabel objects according to their shape attributes
AttributeRelabelLabelMapFilter Self
SmartPointer< const Self > ConstPointer
TAttributeAccessor AttributeAccessorType
AttributeAccessorType m_Accessor
Control indentation during Print() invocation.
ImageBaseType::IndexType IndexType