Class PathObjects

java.lang.Object
qupath.lib.objects.PathObjects

public class PathObjects extends Object
Helper class to create PathObject. This should be used in preference of any constructors, which linger only for historical reasons and compatibility.
Author:
Pete Bankhead
  • Constructor Details

    • PathObjects

      public PathObjects()
  • Method Details

    • createAnnotationObject

      public static PathObject createAnnotationObject(ROI roi, PathClass pathClass, MeasurementList measurements)
      Create a classified annotation object with a specified measurement list.

      Annotation objects are used to represent mutable objects, prizing flexibility over efficiency.

      Parameters:
      roi -
      pathClass -
      measurements -
      Returns:
    • createAnnotationObject

      public static PathObject createAnnotationObject(ROI roi, PathClass pathClass)
      Create a classified annotation object.

      Annotation objects are used to represent mutable objects, prizing flexibility over efficiency.

      Parameters:
      roi -
      pathClass -
      Returns:
    • createAnnotationObject

      public static PathObject createAnnotationObject(ROI roi)
      Create an unclassified annotation object.

      Annotation objects are used to represent mutable objects, prizing flexibility over efficiency.

      Parameters:
      roi -
      Returns:
    • createTMACoreObject

      public static TMACoreObject createTMACoreObject(double xCenter, double yCenter, double diameter, boolean isMissing, ImagePlane plane)
      Create a TMA core object with an circular ROI.
      Parameters:
      xCenter -
      yCenter -
      diameter -
      isMissing -
      plane -
      Returns:
    • createTMACoreObject

      public static TMACoreObject createTMACoreObject(double xCenter, double yCenter, double diameter, boolean isMissing)
      Create a TMA core object with an circular ROI.
      Parameters:
      xCenter -
      yCenter -
      diameter -
      isMissing -
      Returns:
    • createTMACoreObject

      public static TMACoreObject createTMACoreObject(double x, double y, double width, double height, boolean isMissing)
      Create a TMA core object with an ellipse ROI.
      Parameters:
      x -
      y -
      width -
      height -
      isMissing -
      Returns:
    • createTMACoreObject

      public static TMACoreObject createTMACoreObject(double x, double y, double width, double height, boolean isMissing, ImagePlane plane)
      Create a TMA core object with an ellipse ROI.
      Parameters:
      x -
      y -
      width -
      height -
      isMissing -
      plane -
      Returns:
    • createDetectionObject

      public static PathObject createDetectionObject(ROI roi, PathClass pathClass, MeasurementList measurements)
      Create a classified detection object with a specified measurement list.

      Detection objects are used to represent immutable objects that could be very numerous, prizing efficiency over flexibility.

      Parameters:
      roi -
      pathClass -
      measurements -
      Returns:
      See Also:
    • createDetectionObject

      public static PathObject createDetectionObject(ROI roi, PathClass pathClass)
      Create a classified detection object.

      Detection objects are used to represent immutable objects that could be very numerous, prizing efficiency over flexibility.

      Parameters:
      roi -
      pathClass -
      Returns:
    • createDetectionObject

      public static PathObject createDetectionObject(ROI roi)
      Create an unclassified detection object.

      Detection objects are used to represent immutable objects that could be very numerous, prizing efficiency over flexibility.

      Parameters:
      roi -
      Returns:
    • createTileObject

      public static PathObject createTileObject(ROI roi, PathClass pathClass, MeasurementList measurements)
      Create a tile object, with a classification and measurements list.

      Tile objects represent a special case of a detection objects, were the ROI doesn't represent any particular structure (e.g. it is a superpixel or square tile representing a local collection of pixels used on the path to region segmentation).

      Parameters:
      roi -
      pathClass -
      measurements -
      Returns:
      See Also:
    • createTileObject

      public static PathObject createTileObject(ROI roi, PathClass pathClass)
      Create a tile object.

      Tile objects represent a special case of a detection objects, were the ROI doesn't represent any particular structure (e.g. it is a superpixel or square tile representing a local collection of pixels used on the path to region segmentation).

      Parameters:
      roi -
      pathClass -
      Returns:
      Since:
      v0.5.0
      See Also:
    • createTileObject

      public static PathObject createTileObject(ROI roi)
      Create an unclassified tile object.

      Tile objects represent a special case of a detection objects, were the ROI doesn't represent any particular structure (e.g. it is a superpixel or square tile representing a local collection of pixels used on the path to region segmentation).

      Parameters:
      roi -
      Returns:
      See Also:
    • createCellObject

      public static PathObject createCellObject(ROI roiCell, ROI roiNucleus, PathClass pathClass, MeasurementList measurements)
      Create a cell object with an optional classification and measurements list.

      Cell objects represent a special case of a detection objects, where an additional ROI can be stored representing the cell nucleus.

      Parameters:
      roiCell -
      roiNucleus -
      pathClass -
      measurements -
      Returns:
      See Also:
    • createCellObject

      public static PathObject createCellObject(ROI roiCell, ROI roiNucleus, PathClass pathClass)
      Create a cell object with an optional classification.

      Cell objects represent a special case of a detection objects, where an additional ROI can be stored representing the cell nucleus.

      Parameters:
      roiCell -
      roiNucleus -
      pathClass -
      Returns:
      Since:
      v0.5.0
      See Also:
    • createCellObject

      public static PathObject createCellObject(ROI roiCell, ROI roiNucleus)
      Create a cell object.

      Cell objects represent a special case of a detection objects, where an additional ROI can be stored representing the cell nucleus.

      Parameters:
      roiCell -
      roiNucleus -
      Returns:
      Since:
      v0.5.0
      See Also: