Class AbstractTileableDetectionPlugin<T>
- Type Parameters:
- T-
- All Implemented Interfaces:
- PathInteractivePlugin<T>,- PathPlugin<T>
- Direct Known Subclasses:
- CellCountsCV,- DoGSuperpixelsPlugin,- SLICSuperpixelsPlugin,- WatershedCellDetection,- WatershedCellMembraneDetection
Particularly useful for tasks such as cell detection.
- 
Field SummaryFields inherited from class qupath.lib.plugins.AbstractInteractivePluginparams
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddRunnableTasks(ImageData<T> imageData, PathObject parentObject, List<Runnable> tasks) Intercepts the 'standard' addRunnableTasks to (if necessary) insert ParallelTileObjects along the way, thereby breaking an excessively-large parentObject into more manageable pieces.protected abstract ObjectDetector<T> createDetector(ImageData<T> imageData, ParameterList params) Create a new ObjectDetector, compatible with the specified ImageData and ParameterList.protected abstract doublegetPreferredPixelSizeMicrons(ImageData<T> imageData, ParameterList params) Get the preferred pixel size that would be used for the specified ImageData and ParameterList.protected abstract intgetTileOverlap(ImageData<T> imageData, ParameterList params) Get an appropriate overlap, in pixels, if analysis of the specified ImageData will be tiled.Methods inherited from class qupath.lib.plugins.AbstractDetectionPlugingetParentObjects, getSupportedParentObjectClassesMethods inherited from class qupath.lib.plugins.AbstractInteractivePluginalwaysPromptForObjects, getDefaultParameterList, getLoggableParameters, getParameterList, parseArgumentMethods inherited from class qupath.lib.plugins.AbstractPluginaddWorkflowStep, getTasks, postprocess, preprocess, rearrangeByStride, requestHierarchyUpdate, runPluginMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface qupath.lib.plugins.PathPlugingetDescription, getLastResultsDescription, getName, runPlugin
- 
Constructor Details- 
AbstractTileableDetectionPluginpublic AbstractTileableDetectionPlugin()
 
- 
- 
Method Details- 
getPreferredPixelSizeMicronsprotected abstract double getPreferredPixelSizeMicrons(ImageData<T> imageData, ParameterList params) Get the preferred pixel size that would be used for the specified ImageData and ParameterList.This is useful in deciding whether to break large regions into smaller, parallelizable tiles. - Parameters:
- imageData-
- params-
- Returns:
 
- 
createDetectorCreate a new ObjectDetector, compatible with the specified ImageData and ParameterList.- Parameters:
- imageData-
- params-
- Returns:
 
- 
getTileOverlapGet an appropriate overlap, in pixels, if analysis of the specified ImageData will be tiled.If the overlap is 0, then tile boundaries are likely to be visible in the results. If the overlap is > 0, then the overlap should also be > the expected largest size of a detected object - otherwise objects may be lost of trimmed when overlaps are resolved. This is because (currently) the resolution of overlapping detections involves taking the largest one, rather than (for example) merging them. (Merging may be permitted in later versions, but only where measurements are not made by the plugin - since merged objects may require different measurements, e.g. for area or mean than can be easily computed in a general way from the individual objects being merged). - Parameters:
- imageData-
- params-
- Returns:
- The overlap size in pixels, or 0 if overlapped tiles are not supported.
 
- 
addRunnableTasksprotected void addRunnableTasks(ImageData<T> imageData, PathObject parentObject, List<Runnable> tasks) Intercepts the 'standard' addRunnableTasks to (if necessary) insert ParallelTileObjects along the way, thereby breaking an excessively-large parentObject into more manageable pieces.TODO: Avoid hard-coding what is considered a 'manageable size' or a preferred size for parallel tiles. - Specified by:
- addRunnableTasksin class- AbstractPlugin<T>
- Parameters:
- imageData-
- parentObject-
- tasks-
 
 
-