18#ifndef itkLabelObjectLineComparator_h
19#define itkLabelObjectLineComparator_h
40template <
typename TLabelObjectLine>
45 operator()(
const TLabelObjectLine & l1,
const TLabelObjectLine & l2)
const
51 for (
int i = TLabelObjectLine::ImageDimension - 1; i >= 0; i--)
53 if (idx1[i] < idx2[i])
57 if (idx1[i] > idx2[i])
62 return l1.GetLength() < l2.GetLength();
Performs a comparison of l1 < l2. Returns true if l1 is strictly less than l2.
bool operator()(const TLabelObjectLine &l1, const TLabelObjectLine &l2) const
ImageBaseType::IndexType IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
const IndexValueType * GetIndex() const