Class ImageJServer

java.lang.Object
qupath.lib.images.servers.AbstractImageServer<BufferedImage>
qupath.lib.images.servers.AbstractTileableImageServer
qupath.imagej.images.servers.ImageJServer
All Implemented Interfaces:
AutoCloseable, qupath.lib.images.servers.ImageServer<BufferedImage>, qupath.lib.objects.PathObjectReader

public class ImageJServer extends qupath.lib.images.servers.AbstractTileableImageServer implements qupath.lib.objects.PathObjectReader
ImageServer that uses ImageJ's image-reading capabilities.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ImageJServer(URI uri, String... args)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected String
     
    protected qupath.lib.images.servers.ImageServerBuilder.ServerBuilder<BufferedImage>
     
    Get a String representing the image metadata.
    qupath.lib.images.servers.ImageServerMetadata
     
     
     
    Collection<qupath.lib.objects.PathObject>
     
    readTile(qupath.lib.images.servers.TileRequest tile)
     

    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

    getAssociatedImage, getAssociatedImageList, 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

    • ImageJServer

      public ImageJServer(URI uri, String... args) throws IOException
      Constructor.
      Parameters:
      uri - URI representing the local file or an ImageJ-compatible URL
      args - optional arguments (not currently used)
      Throws:
      IOException
  • Method Details

    • readPathObjects

      public Collection<qupath.lib.objects.PathObject> readPathObjects()
      Specified by:
      readPathObjects in interface qupath.lib.objects.PathObjectReader
    • dumpMetadata

      public String dumpMetadata()
      Get a String representing the image metadata.

      Currently, this reflects the contents of the ImageJ 'Show info' command, which is tied to the 'current' slice and therefore not complete for all slices of a multichannel/multidimensional image. This behavior may change in the future.

      Returns:
      a String representing image metadata in ImageJ's own form
    • getURIs

      public Collection<URI> getURIs()
      Specified by:
      getURIs in interface qupath.lib.images.servers.ImageServer<BufferedImage>
    • createID

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

      public BufferedImage readTile(qupath.lib.images.servers.TileRequest tile)
      Specified by:
      readTile in class qupath.lib.images.servers.AbstractTileableImageServer
    • getServerType

      public String getServerType()
      Specified by:
      getServerType in interface qupath.lib.images.servers.ImageServer<BufferedImage>
    • getOriginalMetadata

      public qupath.lib.images.servers.ImageServerMetadata getOriginalMetadata()
      Specified by:
      getOriginalMetadata in interface qupath.lib.images.servers.ImageServer<BufferedImage>
    • createServerBuilder

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

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