Package qupath.lib.objects
Class PathCellObject
java.lang.Object
qupath.lib.objects.PathObject
qupath.lib.objects.PathROIObject
qupath.lib.objects.PathDetectionObject
qupath.lib.objects.PathCellObject
- All Implemented Interfaces:
Externalizable
,Serializable
A subclass of a PathDetectionObject, which also supports storing an (optional) extra ROI to represent
the cell nucleus.
The primary ROI represents the cell boundary.
- Author:
- Pete Bankhead
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the nucleus ROI for this cell.boolean
Returns true if a nucleus ROI is stored for this cell.void
void
Methods inherited from class qupath.lib.objects.PathDetectionObject
createEmptyMeasurementList, getMetadata, isEditable
Methods inherited from class qupath.lib.objects.PathROIObject
getClassProbability, getPathClass, getROI, isLocked, setLocked, setPathClass, setROI
Methods inherited from class qupath.lib.objects.PathObject
addChildObject, addChildObjects, addPathObject, addPathObjects, clearChildObjects, clearMetadataMap, clearPathObjects, getChildObjects, getChildObjects, getChildObjectsAsArray, getClassifications, getColor, getColorRGB, getDescendantObjects, getDisplayedName, getID, getLevel, getMeasurementList, getMeasurements, getName, getParent, getUnmodifiableMetadataMap, hasChildObjects, hasChildren, hasMeasurements, hasROI, isAnnotation, isCell, isDetection, isRootObject, isTile, isTMACore, nChildObjects, nDescendants, objectCountPostfix, refreshID, removeChildObject, removeChildObjects, removePathObject, removePathObjects, resetPathClass, retrieveMetadataKeys, retrieveMetadataValue, setClassifications, setColor, setColor, setColorRGB, setID, setName, setPathClass, storeMetadataValue, toString
-
Constructor Details
-
PathCellObject
public PathCellObject()Default constructor. Should not be used directly, instead usePathObjects.createCellObject(ROI, ROI, PathClass, MeasurementList)
.
-
-
Method Details
-
hasNucleus
public boolean hasNucleus()Returns true if a nucleus ROI is stored for this cell.- Returns:
-
getNucleusROI
Get the nucleus ROI for this cell. This may be null, or may be a ROI stored in addition toPathROIObject.getROI()
, which returns the overall cell boundary.- Returns:
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classPathROIObject
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classPathROIObject
- Throws:
IOException
ClassNotFoundException
-