Class ChannelDisplayTransformServer

java.lang.Object
qupath.lib.images.servers.AbstractImageServer<BufferedImage>
qupath.lib.images.servers.TransformingImageServer<BufferedImage>
qupath.lib.gui.images.servers.ChannelDisplayTransformServer
All Implemented Interfaces:
AutoCloseable, qupath.lib.images.servers.ImageServer<BufferedImage>, qupath.lib.objects.PathObjectReader

public class ChannelDisplayTransformServer extends qupath.lib.images.servers.TransformingImageServer<BufferedImage> implements qupath.lib.objects.PathObjectReader
ImageServer that applies a color transform to an image. This can either be a single RGB transform, or one or more single-channel (float) transforms.

Note: This class may move or be removed in a later version.

  • Method Summary

    Modifier and Type
    Method
    Description
    static qupath.lib.images.servers.ImageServer<BufferedImage>
    createColorTransformServer(qupath.lib.images.servers.ImageServer<BufferedImage> server, List<ChannelDisplayInfo> channels)
    Create an ImageServer for which the channels are created dynamically from a list of ChannelDisplayInfos.
    protected String
     
    protected qupath.lib.images.servers.ImageServerBuilder.ServerBuilder<BufferedImage>
    Returns null (does not support ServerBuilders).
    qupath.lib.images.servers.ImageServerMetadata
     
     
    Collection<qupath.lib.objects.PathObject>
     
    readRegion(qupath.lib.regions.RegionRequest request)
     

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

    getURIs, getWrappedServer

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

    close, 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
  • Method Details

    • createColorTransformServer

      public static qupath.lib.images.servers.ImageServer<BufferedImage> createColorTransformServer(qupath.lib.images.servers.ImageServer<BufferedImage> server, List<ChannelDisplayInfo> channels)
      Create an ImageServer for which the channels are created dynamically from a list of ChannelDisplayInfos.
      Parameters:
      server - the server providing the underlying data
      channels - ChannelDisplayInfo objects defining how the pixels from the wrapped server should be converted to channels in the new server
      Returns:
    • createServerBuilder

      protected qupath.lib.images.servers.ImageServerBuilder.ServerBuilder<BufferedImage> createServerBuilder()
      Returns null (does not support ServerBuilders).
      Specified by:
      createServerBuilder in class qupath.lib.images.servers.AbstractImageServer<BufferedImage>
    • createID

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

      public BufferedImage readRegion(qupath.lib.regions.RegionRequest request) throws IOException
      Specified by:
      readRegion in interface qupath.lib.images.servers.ImageServer<BufferedImage>
      Overrides:
      readRegion in class qupath.lib.images.servers.TransformingImageServer<BufferedImage>
      Throws:
      IOException
    • 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>
      Overrides:
      getOriginalMetadata in class qupath.lib.images.servers.TransformingImageServer<BufferedImage>
    • readPathObjects

      public Collection<qupath.lib.objects.PathObject> readPathObjects() throws IOException
      Specified by:
      readPathObjects in interface qupath.lib.objects.PathObjectReader
      Throws:
      IOException