public final class CellGridUtils extends Object
CellGrid
for wrapping IDataSetPrx
into
CachedCellImg
.Modifier and Type | Method and Description |
---|---|
static int[] |
computeCellDimensions(Imaris.IDataSetPrx dataset,
int[] invMapDimensions,
int[] optionalCellDimensions)
Compute the cell dimensions from block size of
dataset ,
optionally overridden by user-defined optionalCellDimensions . |
static CellGrid |
createCellGrid(long[] dimensions,
int[] cellDimensions,
Fraction entitiesPerPixel)
Creates a
CellGrid with the given dimensions and cellDimensions . |
public static CellGrid createCellGrid(long[] dimensions, int[] cellDimensions, Fraction entitiesPerPixel)
CellGrid
with the given dimensions
and cellDimensions
. Also checks whether the given cellDimensions
lead to cells that are too large to fit into one primitive array.public static int[] computeCellDimensions(Imaris.IDataSetPrx dataset, int[] invMapDimensions, int[] optionalCellDimensions)
dataset
,
optionally overridden by user-defined optionalCellDimensions
.dataset
- dataset handle (to get block sizes from)invMapDimensions
- maps imglib2 dimensions to imaris dimensions. Note that the
length of this array is the number of imglib dimensionsoptionalCellDimensions
- optionally overrides cell dimensions derived from the dataset
(can be null
otherwise). This is truncated or extended (by
replicating the last element) to the required number of dimensionsCopyright © 2019–2021 Imaris. All rights reserved.