Class SparseImageServer.Builder

java.lang.Object
qupath.lib.images.servers.SparseImageServer.Builder
Enclosing class:
SparseImageServer

public static class SparseImageServer.Builder extends Object
Builder to create a new SparseImageServer.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • jsonRegion

      public SparseImageServer.Builder jsonRegion(ImageRegion region, double downsample, ImageServerBuilder.ServerBuilder<BufferedImage> builder)
      Add a region based on a JSON representation of an ImageServer.
      Parameters:
      region - the region within this image where the pixels requested from the server should be positioned
      downsample - the downsample value for the represented region
      builder - the ServerBuilder representation of the server to include
      Returns:
      See Also:
    • serverRegion

      public SparseImageServer.Builder serverRegion(ImageRegion region, double downsample, ImageServer<BufferedImage> server)
      Add a region based on an existing ImageServer.
      Parameters:
      region - the region within this image where the pixels requested from the server should be positioned
      downsample - the downsample value for the represented region
      server - the server to include, supplying pixels for the region
      Returns:
    • build

      public SparseImageServer build() throws IOException
      Build a new SparseImageServer.
      Returns:
      Throws:
      IOException