Class PathObjectListWrapper

java.lang.Object
qupath.lib.gui.measure.PathObjectListWrapper

public class PathObjectListWrapper extends Object
Helper class to wrap a collection of PathObjects that should be measured.

This provides an unmodifiable list of the objects, and performs a single pass through the objects to determine key information that is useful for determining which measurements to show.

  • Method Details

    • create

      public static PathObjectListWrapper create(qupath.lib.images.ImageData<?> imageData, Collection<? extends qupath.lib.objects.PathObject> pathObjects)
      Create a warpper containing the specified objects.
      Parameters:
      imageData -
      pathObjects -
      Returns:
    • create

      public static PathObjectListWrapper create(qupath.lib.images.ImageData<?> imageData, Predicate<qupath.lib.objects.PathObject> predicate)
      Create a wrapper that includes all objects selected by the specified predicate.
      Parameters:
      imageData -
      predicate -
      Returns:
    • forRoot

      public static PathObjectListWrapper forRoot(qupath.lib.images.ImageData<?> imageData)
      Create a wrapper including only the root object.
      Parameters:
      imageData -
      Returns:
    • forAnnotations

      public static PathObjectListWrapper forAnnotations(qupath.lib.images.ImageData<?> imageData)
      Create a wrapper including all annotations.
      Parameters:
      imageData -
      Returns:
    • forDetections

      public static PathObjectListWrapper forDetections(qupath.lib.images.ImageData<?> imageData)
      Create a wrapper including all detections.
      Parameters:
      imageData -
      Returns:
    • forCells

      public static PathObjectListWrapper forCells(qupath.lib.images.ImageData<?> imageData)
      Create a wrapper containing all cells.
      Parameters:
      imageData -
      Returns:
    • forTiles

      public static PathObjectListWrapper forTiles(qupath.lib.images.ImageData<?> imageData)
      Create a wrapper containing all tile objects.
      Parameters:
      imageData -
      Returns:
    • forTmaCores

      public static PathObjectListWrapper forTmaCores(qupath.lib.images.ImageData<?> imageData)
      Create a wrapper containing all TMA cores.
      Parameters:
      imageData -
      Returns: