Package qupath.lib.images.servers
Interface TileRequestManager
public interface TileRequestManager
Helper class to manage tile requests from an
ImageServer
.
The purpose of this is to make it possible to identify the 'optimal' regions to request for any particular pixels in the image, based on the resolution levels actually present.
By contrast RegionRequest
objects can be used to easily request any pixels at
any desired resolution, but this flexibility means that one can easily requests pixels
in an inefficient way - or even inadvertently request pixels multiple times
(e.g. through rounding errors when requesting pixels at an arbitrary resolution).
- Author:
- Pete Bankhead
-
Method Summary
Modifier and TypeMethodDescriptionGetTileRequest
objects for all tiles that this server supports.getTileRequest
(int level, int x, int y, int z, int t) Get the singleTileRequest
containing a specified pixel, or null if no such request exists.getTileRequests
(RegionRequest request) Get a collection ofTileRequest
objects necessary to fulfil a specificRegionRequest
.getTileRequestsForLevel
(int level) GetTileRequest
objects for all tiles that this server supports at the specified resolution level.
-
Method Details
-
getAllTileRequests
Collection<TileRequest> getAllTileRequests()GetTileRequest
objects for all tiles that this server supports.This should return an exhaustive collection of non-overlapping tiles, such that making requests for each of these would result in every supported pixel (at every resolution) being returned precisely once.
- Returns:
-
getTileRequestsForLevel
GetTileRequest
objects for all tiles that this server supports at the specified resolution level.- Parameters:
level
-- Returns:
-
getTileRequests
Get a collection ofTileRequest
objects necessary to fulfil a specificRegionRequest
.- Parameters:
request
-- Returns:
-
getTileRequest
Get the singleTileRequest
containing a specified pixel, or null if no such request exists.- Parameters:
level
-x
-y
-z
-t
-- Returns:
-