|Constructor and Description|
|Modifier and Type||Method and Description|
Return empty cell data.
How many bytes does one element (voxel) occupy? This is used only for statistics, i.e., estimating I/O bandwidth.
Load cell data into memory.
public ImarisVolatileByteArrayLoader(IHDF5Access hdf5Access)
public VolatileByteArray loadArray(int timepoint, int setup, int level, int dimensions, long min) throws InterruptedException
Parameters specify the image within the data set and the location of the
cell within the image:
level define the stack, where setup is a combination of angle,
channel, etc., and level is the resolution level (for multi-resolution
dimensions is the size of the block to load (in voxels).
min is the starting coordinate of the block in the stack (in
CacheArrayLoader interface is implemented in
conjunction with implementing a
ViewerImgLoader for a BDV data
back-end. You do not need to be able to load blocks of arbitrary sizes
and offsets here -- just the ones that you will use from the images
returned by your
ViewerImgLoader. For an example, look at
CatmaidImageLoader. There, the blockDimensions are defined in the
constructor, according to the tile size of the data set. These
blockDimensions are then used for every image that the
CatmaidImageLoader provides. Therefore, all calls to
CacheArrayLoader.loadArray(int, int, int, int, long) will have predictable
dimensions (corresponding to tile size of the data set) and
min offsets (multiples of the tile size).
The only exception to this rule is at the (max) border of the stack. The
boundary cells may have a truncated shape. For example, if your image
size is 20x20x1 and your cell size is 16x16x1, you will
have cell sizes
timepoint- the timepoint of the stack.
setup- the setup of the stack.
level- the resolution level of the stack (0 for full resolution).
dimensions- the size of the block to load (in voxels).
min- the min coordinate of the block in the stack (in voxels).
public VolatileByteArray emptyArray(int dimensions)
VolatileAccess. In this case, the returned data should be invalid (see
VolatileAccess.isValid()). It is okay to return the same (empty and invalid) data for multiple calls to this method.
public int getBytesPerElement()
Copyright © 2015–2017 Fiji. All rights reserved.