Package qupath.lib.plugins
Class DetectionPluginTools
java.lang.Object
qupath.lib.plugins.DetectionPluginTools
Helper methods to convert ObjectDetectors into runnable tasks, which take care of resolving
overlaps when using ParallelTileObjects after the detection is complete and firing notification
events in a PathObjectHierarchy.
Internally, a PathTask is used with the important resolution/event-firing occurring within the taskComplete method.
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Runnable
createRunnableTask
(ObjectDetector<T> task, ParameterList params, ImageData<T> imageData, PathObject parentObject) Create a task that applies an object detector to a parent object.
-
Constructor Details
-
DetectionPluginTools
public DetectionPluginTools()
-
-
Method Details
-
createRunnableTask
public static <T> Runnable createRunnableTask(ObjectDetector<T> task, ParameterList params, ImageData<T> imageData, PathObject parentObject) Create a task that applies an object detector to a parent object.Detected objects will be added as children of the parent. If the parent has a ROI, this may define the detection ROI.
- Type Parameters:
T
-- Parameters:
task
-params
-imageData
-parentObject
-- Returns:
-