Class Parameters.Builder<S,T>

java.lang.Object
qupath.lib.experimental.pixels.Parameters.Builder<S,T>
Type Parameters:
S - the image type
T - the mask type
Enclosing class:
Parameters<S,T>

public static class Parameters.Builder<S,T> extends Object
Builder class for Parameters.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • imageData

      public Parameters.Builder<S,T> imageData(ImageData<BufferedImage> imageData)
      Set the image data.
      Parameters:
      imageData -
      Returns:
    • server

      public Parameters.Builder<S,T> server(ImageServer<BufferedImage> server)
      Set the server. This is optional, for cases when processing should be applied to a different image from that stored in the image data.
      Parameters:
      server -
      Returns:
    • region

      public Parameters.Builder<S,T> region(RegionRequest region)
      Specify the region to use for processing.
      Parameters:
      region -
      Returns:
      See Also:
    • tile

      public Parameters.Builder<S,T> tile(TileRequest tile)
      Specify the tile relevant for processing. If the regions are available as tile requests, these should be used instead of region requests - because they enable more accurate contour tracing across tile boundaries.
      Parameters:
      tile -
      Returns:
      See Also:
    • imageFunction

      public Parameters.Builder<S,T> imageFunction(ImageSupplier<S> function)
      Function used ot lazily read the image.
      Parameters:
      function -
      Returns:
    • maskFunction

      public Parameters.Builder<S,T> maskFunction(MaskSupplier<S,T> function)
      Function used to lazily create a mask corresponding to the image for a specified ROI.
      Parameters:
      function -
      Returns:
    • parent

      public Parameters.Builder<S,T> parent(PathObject parent)
      Set the parent object.
      Parameters:
      parent -
      Returns:
    • parentProxy

      public Parameters.Builder<S,T> parentProxy(PathObject parentProxy)
      Optionally set a temporary object to use as a parent. This is useful for tiled processing, when the parent object may be too large to process in a single region.
      Parameters:
      parentProxy -
      Returns:
    • build

      public Parameters<S,T> build()
      Build the parameters.
      Returns: