Class SLICSuperpixelsPlugin

java.lang.Object
qupath.lib.plugins.AbstractPlugin<BufferedImage>
qupath.lib.plugins.AbstractInteractivePlugin<BufferedImage>
qupath.lib.plugins.AbstractDetectionPlugin<BufferedImage>
qupath.lib.plugins.AbstractTileableDetectionPlugin<BufferedImage>
qupath.imagej.superpixels.SLICSuperpixelsPlugin
All Implemented Interfaces:
qupath.lib.plugins.PathInteractivePlugin<BufferedImage>, qupath.lib.plugins.PathPlugin<BufferedImage>

public class SLICSuperpixelsPlugin extends qupath.lib.plugins.AbstractTileableDetectionPlugin<BufferedImage>
An implementation of SLIC superpixels, as described at http://ivrl.epfl.ch/research/superpixels

This largely follows the description at:

Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurelien Lucchi, Pascal Fua, and Sabine Süsstrunk
SLIC Superpixels Compared to State-of-the-art Superpixel Methods
IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 34, num. 11, p. 2274 - 2282, May 2012.
It doesn't follow the code made available by the authors, and differs in some details.

For example, the 'spacing' parameter is also used to determine the resolution at which the superpixel computation is performed, and a Gaussian filter is used to help reduce textures in advance. It is also possible to use color deconvolved images, rather than transforming RGB to CIELAB.

  • Field Summary

    Fields inherited from class qupath.lib.plugins.AbstractInteractivePlugin

    params
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected qupath.lib.plugins.ObjectDetector<BufferedImage>
    createDetector(qupath.lib.images.ImageData<BufferedImage> imageData, qupath.lib.plugins.parameters.ParameterList params)
     
    qupath.lib.plugins.parameters.ParameterList
    getDefaultParameterList(qupath.lib.images.ImageData<BufferedImage> imageData)
     
     
     
     
    protected Collection<? extends qupath.lib.objects.PathObject>
    getParentObjects(qupath.lib.images.ImageData<BufferedImage> imageData)
     
    protected double
    getPreferredPixelSizeMicrons(qupath.lib.images.ImageData<BufferedImage> imageData, qupath.lib.plugins.parameters.ParameterList params)
     
    protected int
    getTileOverlap(qupath.lib.images.ImageData<BufferedImage> imageData, qupath.lib.plugins.parameters.ParameterList params)
     

    Methods inherited from class qupath.lib.plugins.AbstractTileableDetectionPlugin

    addRunnableTasks

    Methods inherited from class qupath.lib.plugins.AbstractDetectionPlugin

    getSupportedParentObjectClasses

    Methods inherited from class qupath.lib.plugins.AbstractInteractivePlugin

    alwaysPromptForObjects, getLoggableParameters, getParameterList, parseArgument

    Methods inherited from class qupath.lib.plugins.AbstractPlugin

    addWorkflowStep, getTasks, postprocess, preprocess, rearrangeByStride, requestHierarchyUpdate, runPlugin

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface qupath.lib.plugins.PathPlugin

    runPlugin
  • Constructor Details

    • SLICSuperpixelsPlugin

      public SLICSuperpixelsPlugin()
  • Method Details

    • getName

      public String getName()
    • getLastResultsDescription

      public String getLastResultsDescription()
    • getPreferredPixelSizeMicrons

      protected double getPreferredPixelSizeMicrons(qupath.lib.images.ImageData<BufferedImage> imageData, qupath.lib.plugins.parameters.ParameterList params)
      Specified by:
      getPreferredPixelSizeMicrons in class qupath.lib.plugins.AbstractTileableDetectionPlugin<BufferedImage>
    • createDetector

      protected qupath.lib.plugins.ObjectDetector<BufferedImage> createDetector(qupath.lib.images.ImageData<BufferedImage> imageData, qupath.lib.plugins.parameters.ParameterList params)
      Specified by:
      createDetector in class qupath.lib.plugins.AbstractTileableDetectionPlugin<BufferedImage>
    • getTileOverlap

      protected int getTileOverlap(qupath.lib.images.ImageData<BufferedImage> imageData, qupath.lib.plugins.parameters.ParameterList params)
      Specified by:
      getTileOverlap in class qupath.lib.plugins.AbstractTileableDetectionPlugin<BufferedImage>
    • getDefaultParameterList

      public qupath.lib.plugins.parameters.ParameterList getDefaultParameterList(qupath.lib.images.ImageData<BufferedImage> imageData)
      Specified by:
      getDefaultParameterList in interface qupath.lib.plugins.PathInteractivePlugin<BufferedImage>
      Specified by:
      getDefaultParameterList in class qupath.lib.plugins.AbstractInteractivePlugin<BufferedImage>
    • getDescription

      public String getDescription()
    • getParentObjects

      protected Collection<? extends qupath.lib.objects.PathObject> getParentObjects(qupath.lib.images.ImageData<BufferedImage> imageData)
      Overrides:
      getParentObjects in class qupath.lib.plugins.AbstractDetectionPlugin<BufferedImage>