18 #ifndef itkLabelObjectLineComparator_h
19 #define itkLabelObjectLineComparator_h
40 template<
typename TLabelObjectLine >
44 bool operator()(TLabelObjectLine
const & l1, TLabelObjectLine
const & l2)
const
49 for (
int i = TLabelObjectLine::ImageDimension - 1; i >= 0; i-- )
51 if ( idx1[i] < idx2[i] )
55 else if ( idx1[i] > idx2[i] )
60 return l1.GetLength() < l2.GetLength();
const IndexValueType * GetIndex() const
Performs a comparison of l1 < l2. Returns true if l1 is strictly less than l2.
bool operator()(TLabelObjectLine const &l1, TLabelObjectLine const &l2) const
ImageBaseType::IndexType IndexType