Class AbstractDetectionPlugin<T>

Type Parameters:
T -
All Implemented Interfaces:
PathInteractivePlugin<T>, PathPlugin<T>
Direct Known Subclasses:
AbstractTileableDetectionPlugin, DetectCytokeratinCV, PositivePixelCounterIJ, SimpleTissueDetection2, TileClassificationsToAnnotationsPlugin, TilerPlugin

public abstract class AbstractDetectionPlugin<T> extends AbstractInteractivePlugin<T>
Abstract plugin aimed towards cases where new objects will be detected inside existing objects (normally TMA cores or annotations).

TODO: Note this isn't a very stable API (because it's quite awkward), and it's therefore liable to change...

Author:
Pete Bankhead
  • Constructor Details

    • AbstractDetectionPlugin

      public AbstractDetectionPlugin()
  • Method Details

    • getSupportedParentObjectClasses

      public Collection<Class<? extends PathObject>> getSupportedParentObjectClasses()
      Description copied from interface: PathInteractivePlugin
      Get a collection of possible parent objects that the plugin could have. This may be used, for example, to specified that analysis may be applied to any/all TMA cores or annotations. If no parent objects are required, PathRootObject.class should be returned in the list.
      Returns:
    • getParentObjects

      protected Collection<? extends PathObject> getParentObjects(ImageData<T> imageData)
      Get all selected objects that are instances of a supported class.
      Specified by:
      getParentObjects in class AbstractPlugin<T>
      Parameters:
      imageData -
      Returns: