Class DefaultPathObjectComparator

java.lang.Object
qupath.lib.objects.DefaultPathObjectComparator
All Implemented Interfaces:
Comparator<PathObject>

public class DefaultPathObjectComparator extends Object implements Comparator<PathObject>
Default comparator to enable objects to be sorted in a more predictable manner.

The aim is to help sorted lists to keep non-detection objects near the top, and thereafter to sort by classification and ROI location (y coordinate first, then x) according to the DefaultROIComparator.

Note: The precise comparison is undefined and subject to change/optimization. This is intended for more reproducible behavior while QuPath is running, but it not guaranteed to apply the same comparison across software versions.

Author:
Pete Bankhead
  • Constructor Details

    • DefaultPathObjectComparator

      public DefaultPathObjectComparator()
  • Method Details