Package qupath.lib.objects.utils
Class Tiler.Builder
java.lang.Object
qupath.lib.objects.utils.Tiler.Builder
- Enclosing class:
Tiler
-
Method Summary
Modifier and TypeMethodDescriptionStart tiles at the bottom center of the ROI bounding box.Match tiles to the bottom left of the ROI bounding box.Match tiles to the bottom right of the ROI bounding box.Center tiles within the ROI bounding box.Match tiles to the center left of the ROI bounding box.Match tiles to the center left of the ROI bounding box.alignment
(Tiler.TileAlignment alignment) Set the tile alignment.Start tiles at the top center of the ROI bounding box.Start tiles at the top left of the ROI bounding box.Match tiles to the top right of the ROI bounding box.build()
Build a tiler object with the current settings.cropTiles
(boolean cropToParent) Set whether the tiler is set to crop the output to the input parent.filterByCentroid
(boolean filterByCentroid) Set if the tiler will filter the output based on whether the centroid of tiles lies within the parenttileHeight
(int tileHeight) Change the height of output tilestileWidth
(int tileWidth) Change the width of output tiles
-
Method Details
-
tileHeight
Change the height of output tiles- Parameters:
tileHeight
- the new height in pixels- Returns:
- this builder
-
tileWidth
Change the width of output tiles- Parameters:
tileWidth
- the new width in pixels- Returns:
- this builder
-
cropTiles
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
Set the tile alignment.- Parameters:
alignment
- the new setting- Returns:
- this builder
-
alignTopLeft
Start tiles at the top left of the ROI bounding box.- Returns:
- this builder
-
alignTopCenter
Start tiles at the top center of the ROI bounding box.- Returns:
- this builder
-
alignTopRight
Match tiles to the top right of the ROI bounding box.- Returns:
- this builder
-
alignCenterLeft
Match tiles to the center left of the ROI bounding box.- Returns:
- this builder
-
alignCenter
Center tiles within the ROI bounding box.- Returns:
- this builder
-
alignCenterRight
Match tiles to the center left of the ROI bounding box.- Returns:
- this builder
-
alignBottomLeft
Match tiles to the bottom left of the ROI bounding box.- Returns:
- this builder
-
alignBottomCenter
Start tiles at the bottom center of the ROI bounding box.- Returns:
- this builder
-
alignBottomRight
Match tiles to the bottom right of the ROI bounding box.- Returns:
- this builder
-
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
Build a tiler object with the current settings.- Returns:
-