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,MinimalMetadataStore
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the nucleus ROI for this cell.booleanReturns true if a nucleus ROI is stored for this cell.voidvoidMethods inherited from class qupath.lib.objects.PathDetectionObject
createEmptyMeasurementList, isEditableMethods inherited from class qupath.lib.objects.PathROIObject
getClassProbability, getPathClass, getROI, isLocked, setLocked, setPathClass, setROIMethods inherited from class qupath.lib.objects.PathObject
addChildObject, addChildObjects, clearChildObjects, clearMetadataMap, getChildObjects, getChildObjects, getChildObjectsAsArray, getClassification, getClassifications, getColor, getDescendantObjects, getDisplayedName, getID, getLevel, getMeasurementList, getMeasurements, getMetadata, getName, getParent, getUnmodifiableMetadataMap, hasChildObjects, hasMeasurements, hasMetadata, hasROI, isAnnotation, isCell, isDetection, isRootObject, isTile, isTMACore, nChildObjects, nDescendants, objectCountPostfix, refreshID, removeChildObject, removeChildObjects, resetPathClass, retrieveMetadataKeys, retrieveMetadataValue, setClassification, setClassification, setClassifications, setColor, setColor, 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:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classPathROIObject- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classPathROIObject- Throws:
IOExceptionClassNotFoundException
-