Package qupath.lib.objects
Class PathRootObject
java.lang.Object
qupath.lib.objects.PathObject
qupath.lib.objects.PathRootObject
- All Implemented Interfaces:
Externalizable
,Serializable
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Request the classification probability, or Double.NaN if no probability is available.Get the classification of the object.getROI()
Get the region of interest (ROI) for the object.boolean
The root object is never locked.boolean
Returns true if the object is the 'root' of an object hierarchy.void
setPathClass
(PathClass pathClass, double classProbability) Set the classification of the object, specifying a classification probability.toString()
Methods inherited from class qupath.lib.objects.PathObject
addChildObject, addChildObjects, addPathObject, addPathObjects, clearChildObjects, clearMetadataMap, clearPathObjects, createEmptyMeasurementList, getChildObjects, getChildObjects, getChildObjectsAsArray, getClassifications, getColor, getColorRGB, getDescendantObjects, getDisplayedName, getID, getLevel, getMeasurementList, getMeasurements, getMetadata, getName, getParent, getUnmodifiableMetadataMap, hasChildObjects, hasChildren, hasMeasurements, hasROI, isAnnotation, isCell, isDetection, isLocked, isTile, isTMACore, nChildObjects, nDescendants, objectCountPostfix, readExternal, refreshID, removeChildObject, removeChildObjects, removePathObject, removePathObjects, resetPathClass, retrieveMetadataKeys, retrieveMetadataValue, setClassifications, setColor, setColor, setColorRGB, setID, setLocked, setName, setPathClass, storeMetadataValue, writeExternal
-
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 classPathObject
- Returns:
- See Also:
-
getPathClass
Description copied from class:PathObject
Get the classification of the object.- Specified by:
getPathClass
in classPathObject
- Returns:
-
setPathClass
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 classPathObject
- 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 classPathObject
- Returns:
-
getROI
Description copied from class:PathObject
Get the region of interest (ROI) for the object.- Specified by:
getROI
in classPathObject
- Returns:
-
toString
- Overrides:
toString
in classPathObject
-
isEditable
public boolean isEditable()The root object is never locked.- Specified by:
isEditable
in classPathObject
- Returns:
-