Class Tiler.Builder

java.lang.Object
qupath.lib.objects.utils.Tiler.Builder
Enclosing class:
Tiler

public static class Tiler.Builder extends Object
  • Method Details

    • tileHeight

      public Tiler.Builder tileHeight(int tileHeight)
      Change the height of output tiles
      Parameters:
      tileHeight - the new height in pixels
      Returns:
      this builder
    • tileWidth

      public Tiler.Builder tileWidth(int tileWidth)
      Change the width of output tiles
      Parameters:
      tileWidth - the new width in pixels
      Returns:
      this builder
    • cropTiles

      public Tiler.Builder cropTiles(boolean cropToParent)
      Set whether the tiler is set to crop the output to the input parent. Using this option can result in smaller and non-rectangular tiles.
      Parameters:
      cropToParent - the new setting
      Returns:
      this builder
    • alignment

      public Tiler.Builder alignment(Tiler.TileAlignment alignment)
      Set the tile alignment.
      Parameters:
      alignment - the new setting
      Returns:
      this builder
    • alignTopLeft

      public Tiler.Builder alignTopLeft()
      Start tiles at the top left of the ROI bounding box.
      Returns:
      this builder
    • alignTopCenter

      public Tiler.Builder alignTopCenter()
      Start tiles at the top center of the ROI bounding box.
      Returns:
      this builder
    • alignTopRight

      public Tiler.Builder alignTopRight()
      Match tiles to the top right of the ROI bounding box.
      Returns:
      this builder
    • alignCenterLeft

      public Tiler.Builder alignCenterLeft()
      Match tiles to the center left of the ROI bounding box.
      Returns:
      this builder
    • alignCenter

      public Tiler.Builder alignCenter()
      Center tiles within the ROI bounding box.
      Returns:
      this builder
    • alignCenterRight

      public Tiler.Builder alignCenterRight()
      Match tiles to the center left of the ROI bounding box.
      Returns:
      this builder
    • alignBottomLeft

      public Tiler.Builder alignBottomLeft()
      Match tiles to the bottom left of the ROI bounding box.
      Returns:
      this builder
    • alignBottomCenter

      public Tiler.Builder alignBottomCenter()
      Start tiles at the bottom center of the ROI bounding box.
      Returns:
      this builder
    • alignBottomRight

      public Tiler.Builder alignBottomRight()
      Match tiles to the bottom right of the ROI bounding box.
      Returns:
      this builder
    • filterByCentroid

      public Tiler.Builder filterByCentroid(boolean filterByCentroid)
      Set if the tiler will filter the output based on whether the centroid of tiles lies within the parent
      Parameters:
      filterByCentroid - the new setting
      Returns:
      this builder
    • build

      public Tiler build()
      Build a tiler object with the current settings.
      Returns: