Class OpenslideImageServer

java.lang.Object
qupath.lib.images.servers.AbstractImageServer<BufferedImage>
qupath.lib.images.servers.AbstractTileableImageServer
qupath.lib.images.servers.openslide.OpenslideImageServer
All Implemented Interfaces:
AutoCloseable, qupath.lib.images.servers.ImageServer<BufferedImage>

public class OpenslideImageServer extends qupath.lib.images.servers.AbstractTileableImageServer
ImageServer implementation using OpenSlide.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create an ImageServer using OpenSlide for the specified file.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected String
     
    protected qupath.lib.images.servers.ImageServerBuilder.ServerBuilder<BufferedImage>
     
    Retrieve a JSON string representation of the properties, as stored as key-value pairs by OpenSlide.
     
     
    qupath.lib.images.servers.ImageServerMetadata
     
     
     
    readTile(qupath.lib.images.servers.TileRequest tileRequest)
     

    Methods inherited from class qupath.lib.images.servers.AbstractTileableImageServer

    allowSmoothInterpolation, createDefaultRGBImage, getDefaultColorModel, getEmptyTile, getEmptyTile, getTile, readRegion

    Methods inherited from class qupath.lib.images.servers.AbstractImageServer

    getBuilder, getCache, getCachedTile, getChannel, getDefaultThumbnail, getDownsampleForResolution, getHeight, getImageClass, getMetadata, getPath, getPixelType, getPreferredDownsamples, getThumbnailDownsampleFactor, getTileRequestManager, getWidth, isEmptyRegion, isRGB, nChannels, nResolutions, nTimepoints, nZSlices, setMetadata, toString

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface qupath.lib.images.servers.ImageServer

    getPixelCalibration, readBufferedImage, readRegion, readRegion
  • Constructor Details

    • OpenslideImageServer

      public OpenslideImageServer(URI uri, String... args) throws IOException
      Create an ImageServer using OpenSlide for the specified file.

      The only supported arg is --no-crop, to specify that any bounding box should not be applied (which was the default in QuPath <= v0.1.2).

      Parameters:
      uri -
      args -
      Throws:
      IOException
  • Method Details

    • getURIs

      public Collection<URI> getURIs()
    • createID

      protected String createID()
      Specified by:
      createID in class qupath.lib.images.servers.AbstractImageServer<BufferedImage>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class qupath.lib.images.servers.AbstractImageServer<BufferedImage>
    • dumpMetadata

      public String dumpMetadata()
      Retrieve a JSON string representation of the properties, as stored as key-value pairs by OpenSlide.
      Returns:
    • getServerType

      public String getServerType()
    • readTile

      public BufferedImage readTile(qupath.lib.images.servers.TileRequest tileRequest) throws IOException
      Specified by:
      readTile in class qupath.lib.images.servers.AbstractTileableImageServer
      Throws:
      IOException
    • getAssociatedImageList

      public List<String> getAssociatedImageList()
      Specified by:
      getAssociatedImageList in interface qupath.lib.images.servers.ImageServer<BufferedImage>
      Overrides:
      getAssociatedImageList in class qupath.lib.images.servers.AbstractImageServer<BufferedImage>
    • createServerBuilder

      protected qupath.lib.images.servers.ImageServerBuilder.ServerBuilder<BufferedImage> createServerBuilder()
      Specified by:
      createServerBuilder in class qupath.lib.images.servers.AbstractImageServer<BufferedImage>
    • getAssociatedImage

      public BufferedImage getAssociatedImage(String name)
      Specified by:
      getAssociatedImage in interface qupath.lib.images.servers.ImageServer<BufferedImage>
      Overrides:
      getAssociatedImage in class qupath.lib.images.servers.AbstractImageServer<BufferedImage>
    • getOriginalMetadata

      public qupath.lib.images.servers.ImageServerMetadata getOriginalMetadata()