18 #ifndef itkLabelObjectAccessors_h 19 #define itkLabelObjectAccessors_h 37 template<
typename TLabelObject >
44 inline AttributeValueType
operator()(
const LabelObjectType *labelObject)
const 46 return labelObject->GetLabel();
50 template<
typename TLabelObject >
57 inline AttributeValueType
operator()(
const LabelObjectType *labelObject)
const 59 return labelObject->GetNumberOfLines();
63 template<
typename TLabelObject,
typename TAttributeAccessor >
69 bool operator()(
const LabelObjectType *a,
const LabelObjectType *b)
const 71 return m_Accessor(a) > m_Accessor(b);
84 template<
typename TLabelObject,
typename TAttributeAccessor >
90 bool operator()(
const LabelObjectType *a,
const LabelObjectType *b)
const 92 return m_Accessor(a) < m_Accessor(b);
LabelObjectComparator(LabelObjectComparator const &from)
LabelObjectReverseComparator()
AttributeAccessorType m_Accessor
AttributeAccessorType m_Accessor
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
TLabelObject LabelObjectType
AttributeValueType operator()(const LabelObjectType *labelObject) const
LabelObjectType::LabelType AttributeValueType
AttributeValueType operator()(const LabelObjectType *labelObject) const
bool operator()(const LabelObjectType *a, const LabelObjectType *b) const
TAttributeAccessor AttributeAccessorType
LabelObjectReverseComparator(LabelObjectReverseComparator const &from)
TLabelObject LabelObjectType
TAttributeAccessor AttributeAccessorType
TLabelObject LabelObjectType
TLabelObject LabelObjectType
bool operator()(const LabelObjectType *a, const LabelObjectType *b) const