18 #ifndef itkAttributeRelabelLabelMapFilter_h
19 #define itkAttributeRelabelLabelMapFilter_h
42 template<
typename TImage,
typename TAttributeAccessor=
43 typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType > >
68 static constexpr
unsigned int ImageDimension = TImage::ImageDimension;
77 #ifdef ITK_USE_CONCEPT_CHECKING
93 itkSetMacro( ReverseOrdering,
bool );
94 itkGetConstReferenceMacro( ReverseOrdering,
bool );
95 itkBooleanMacro( ReverseOrdering );
102 void GenerateData()
override;
104 void PrintSelf(std::ostream& os,
Indent indent)
const override;
109 bool operator()(
const typename LabelObjectType::Pointer & a,
const typename LabelObjectType::Pointer & b )
111 return m_Accessor( a ) < m_Accessor( b );
121 bool operator()(
const typename LabelObjectType::Pointer & a,
const typename LabelObjectType::Pointer & b )
123 return m_Accessor( a ) > m_Accessor( b );
137 #ifndef ITK_MANUAL_INSTANTIATION
138 #include "itkAttributeRelabelLabelMapFilter.hxx"
typename ImageType::Pointer ImagePointer
Light weight base class for most itk classes.
bool operator()(const typename LabelObjectType::Pointer &a, const typename LabelObjectType::Pointer &b)
AttributeAccessorType m_Accessor
typename ImageType::PixelType PixelType
typename LabelObjectType::LabelType AttributeValueType
typename ImageType::ConstPointer ImageConstPointer
bool operator()(const typename LabelObjectType::Pointer &a, const typename LabelObjectType::Pointer &b)
typename ImageType::IndexType IndexType
ImageBaseType::IndexType IndexType
Base class for filters that takes an image as input and overwrites that image as the output...
relabel objects according to their shape attributes
typename AttributeAccessorType::AttributeValueType AttributeValueType
AttributeAccessorType m_Accessor
Control indentation during Print() invocation.
TAttributeAccessor AttributeAccessorType
typename ImageType::LabelObjectType LabelObjectType