Package qupath.lib.plugins
Class ParallelTileObject
java.lang.Object
qupath.lib.objects.PathObject
qupath.lib.objects.PathROIObject
qupath.lib.objects.PathDetectionObject
qupath.lib.objects.PathTileObject
qupath.lib.plugins.ParallelTileObject
- All Implemented Interfaces:
Externalizable
,Serializable
,TemporaryObject
A temporary object, used during parallel processing to represent a tile currently being used for object
detection.
ParallelTileObjects maintain knowledge of adjacent tiles, and are thereby able to resolve overlaps after detection is complete (here, based on keeping the object with the larger area).
- Author:
- Pete Bankhead
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Current processing status for the tile. -
Method Summary
Modifier and TypeMethodDescriptionGet the current status (pending, processing or done).boolean
Returns true if setComplete() has been called.boolean
Returns true if setIsProcessing(true) has recently been called.void
Request that the tile object attempts to resolve overlaps with its neighboring tiles.void
setComplete
(boolean wasCancelled) Notify the tile that its processing is done.boolean
Register a neighboring tile, if it intersects with the bounds of this onevoid
Notify the object if it is currently being processed.Methods inherited from class qupath.lib.objects.PathDetectionObject
createEmptyMeasurementList, getMetadata, isEditable
Methods inherited from class qupath.lib.objects.PathROIObject
getClassProbability, getPathClass, getROI, isLocked, readExternal, setLocked, setPathClass, setROI, writeExternal
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
-
Method Details
-
suggestNeighbor
Register a neighboring tile, if it intersects with the bounds of this one- Parameters:
pto
-- Returns:
-
updateStatus
Notify the object if it is currently being processed. This is used to update how it is displayed (here implemented using a classification).- Parameters:
status
-
-
getStatus
Get the current status (pending, processing or done).- Returns:
-
isProcessing
public boolean isProcessing()Returns true if setIsProcessing(true) has recently been called.- Returns:
-
isComplete
public boolean isComplete()Returns true if setComplete() has been called.- Returns:
-
setComplete
public void setComplete(boolean wasCancelled) Notify the tile that its processing is done. This both changes its display color, and triggers a check to see if overlaps with detections made in adjacent tiles can be resolved.- Parameters:
wasCancelled
-
-
resolveOverlaps
public void resolveOverlaps()Request that the tile object attempts to resolve overlaps with its neighboring tiles.
-