18#ifndef itkLabelObjectAccessors_h
19#define itkLabelObjectAccessors_h
34template <
typename TLabelObject>
44 return labelObject->GetLabel();
48template <
typename TLabelObject>
58 return labelObject->GetNumberOfLines();
62template <
typename TLabelObject,
typename TAttributeAccessor>
83template <
typename TLabelObject,
typename TAttributeAccessor>
AttributeValueType operator()(const LabelObjectType *labelObject) const
typename LabelObjectType::LabelType AttributeValueType
TLabelObject LabelObjectType
LabelObjectComparator(const LabelObjectComparator &from)
TAttributeAccessor AttributeAccessorType
AttributeAccessorType m_Accessor
bool operator()(const LabelObjectType *a, const LabelObjectType *b) const
TLabelObject LabelObjectType
LabelObjectComparator()=default
TAttributeAccessor AttributeAccessorType
TLabelObject LabelObjectType
bool operator()(const LabelObjectType *a, const LabelObjectType *b) const
AttributeAccessorType m_Accessor
LabelObjectReverseComparator(const LabelObjectReverseComparator &from)
LabelObjectReverseComparator()=default
TLabelObject LabelObjectType
AttributeValueType operator()(const LabelObjectType *labelObject) const