public class Utils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Utils.FailedTileLoopException
The processing of a tile failed so abort the loop.
|
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
forEachTile(TileLoopIteration iteration,
int sizeX,
int sizeY,
int sizeZ,
int sizeC,
int sizeT,
int tileWidth,
int tileHeight)
Iterates over every tile in a given pixel buffer based on the
over arching dimensions and a requested maximum tile width and height.
|
static int |
forEachTile(TileLoopIteration iteration,
PixelBuffer pixelBuffer,
int tileWidth,
int tileHeight)
Iterates over every tile in a given pixel buffer based on the
over arching dimensions and a requested maximum tile width and height.
|
public static int forEachTile(TileLoopIteration iteration, PixelBuffer pixelBuffer, int tileWidth, int tileHeight) throws Utils.FailedTileLoopException
iteration - Invoker to call for each tile.pixelBuffer - Pixel buffer which is backing the pixel data.tileWidth - Maximum width of the tile requested. The tile
request itself will be smaller than the original tile width requested if
x + tileWidth > sizeX.tileHeight - Maximum height of the tile requested. The tile
request itself will be smaller if y + tileHeight > sizeY.Utils.FailedTileLoopException - if the tile loop was aborted; exception bears completed tile countpublic static int forEachTile(TileLoopIteration iteration, int sizeX, int sizeY, int sizeZ, int sizeC, int sizeT, int tileWidth, int tileHeight) throws Utils.FailedTileLoopException
iteration - Invoker to call for each tile.tileWidth - Maximum width of the tile requested. The tile
request itself will be smaller than the original tile width requested if
x + tileWidth > sizeX.tileHeight - Maximum height of the tile requested. The tile
request itself will be smaller if y + tileHeight > sizeY.Utils.FailedTileLoopException - if the tile loop was aborted; exception bears completed tile count