Class PathRootObject

java.lang.Object
qupath.lib.objects.PathObject
qupath.lib.objects.PathRootObject
All Implemented Interfaces:
Externalizable, Serializable

public class PathRootObject extends PathObject
The root object used at the base of a PathObjectHierarchy.

This doesn't have a ROI, and can't have its PathClass set.

Author:
Pete Bankhead
See Also:
  • Constructor Details

    • PathRootObject

      public PathRootObject()
  • Method Details

    • isRootObject

      public boolean isRootObject()
      Description copied from class: PathObject
      Returns true if the object is the 'root' of an object hierarchy.
      Overrides:
      isRootObject in class PathObject
      Returns:
      See Also:
    • getPathClass

      public PathClass getPathClass()
      Description copied from class: PathObject
      Get the classification of the object.
      Specified by:
      getPathClass in class PathObject
      Returns:
    • setPathClass

      public void setPathClass(PathClass pathClass, double classProbability)
      Description copied from class: PathObject
      Set the classification of the object, specifying a classification probability.

      The probability is expected to be between 0 and 1, or Double.NaN if no probability should be set.

      Specified by:
      setPathClass in class PathObject
      Parameters:
      pathClass -
      classProbability -
    • getClassProbability

      public double getClassProbability()
      Description copied from class: PathObject
      Request the classification probability, or Double.NaN if no probability is available.
      Specified by:
      getClassProbability in class PathObject
      Returns:
    • getROI

      public ROI getROI()
      Description copied from class: PathObject
      Get the region of interest (ROI) for the object.
      Specified by:
      getROI in class PathObject
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class PathObject
    • isEditable

      public boolean isEditable()
      The root object is never locked.
      Specified by:
      isEditable in class PathObject
      Returns: