omero.util.tiles module¶
- class util.tiles.RPSTileData(loop, rps)[source]¶
Bases:
TileData
- class util.tiles.RPSTileLoop(session, pixels)[source]¶
Bases:
TileLoop
- createData()[source]¶
Subclasses must provide a fresh instance of {@link TileData}. The instance will be closed after the run of forEachTile.
- Returns:
TileData
- forEachTile(tileWidth, tileHeight, iteration)[source]¶
Iterates over every tile in a given Pixels object based on the over arching dimensions and a requested maximum tile width and height. :param tileWidth: <b>Maximum</b> width of the tile requested. The tile request itself will be smaller than the original tile width requested if <code>x + tileWidth > sizeX</code>. :param tileHeight: <b>Maximum</b> height of the tile requested. The tile request itself will be smaller if <code>y + tileHeight > sizeY</code>. :param iteration: Invoker to call for each tile. @return The total number of tiles iterated over.
- class util.tiles.TileData[source]¶
Bases:
object
“Interface” which must be returned by concrete TileLoop implementations.
- class util.tiles.TileLoop[source]¶
Bases:
object
- createData()[source]¶
Subclasses must provide a fresh instance of {@link TileData}. The instance will be closed after the run of forEachTile.
- Returns:
TileData
- forEachTile(sizeX, sizeY, sizeZ, sizeC, sizeT, tileWidth, tileHeight, iteration)[source]¶
Iterates over every tile in a given Pixels object based on the over arching dimensions and a requested maximum tile width and height. :param sizeX: int :param sizeY: int :param sizeZ: int :param sizeC: int :param sizeT: int :param iteration: Invoker to call for each tile. :param pixel: Pixel instance :param tileWidth: <b>Maximum</b> width of the tile requested. The tile request itself will be smaller than the original tile width requested if <code>x + tileWidth > sizeX</code>. :param tileHeight: <b>Maximum</b> height of the tile requested. The tile request itself will be smaller if <code>y + tileHeight > sizeY</code>. :returns: The total number of tiles iterated over.