A - access typepublic class ImarisLoader<A> extends Object implements CacheRemover<Long,Cell<A>,A>, CacheLoader<Long,Cell<A>>
CacheLoader/CacheRemover for reading cells
from an Imaris IDataset.
This implementation is intended for read-only images, so the
CacheRemover interface is implemented to do nothing.
| Modifier and Type | Field and Description |
|---|---|
protected CellGrid |
grid |
protected int |
n |
defaultParallelismThreshold| Modifier | Constructor and Description |
|---|---|
|
ImarisLoader(Imaris.IDataSetPrx dataset,
int[] mapDimensions,
CellGrid grid,
int level)
TODO
|
protected |
ImarisLoader(Imaris.IDataSetPrx dataset,
int[] mapDimensions,
CellGrid grid,
int level,
boolean withDirtyFlag) |
| Modifier and Type | Method and Description |
|---|---|
A |
extract(Cell<A> value) |
Cell<A> |
get(Long key) |
void |
onRemoval(Long key,
A valueData) |
CompletableFuture<Void> |
persist(Long key,
A valueData) |
Cell<A> |
reconstruct(Long key,
A valueData) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvalidate, invalidateAll, invalidateIfinvalidateAll, invalidateIfprotected final CellGrid grid
protected final int n
public ImarisLoader(Imaris.IDataSetPrx dataset,
int[] mapDimensions,
CellGrid grid,
int level)
throws Imaris.Error
dataset - mapDimensions - maps Imaris dimension indices to imglib2 dimension indices.
If i is dimension index from Imaris (0..4 means X,Y,Z,C,T)
then mapDimensions[i] is the corresponding dimension in Img.
For Img dimensions with size=1 are skipped.
E.g., for a X,Y,C image mapDimensions = {0,1,-1,2,-1}.grid - level - Imaris.Errorprotected ImarisLoader(Imaris.IDataSetPrx dataset,
int[] mapDimensions,
CellGrid grid,
int level,
boolean withDirtyFlag)
throws Imaris.Error
Imaris.Errorpublic Cell<A> reconstruct(Long key, A valueData)
reconstruct in interface CacheRemover<Long,Cell<A>,A>public CompletableFuture<Void> persist(Long key, A valueData)
Copyright © 2019–2021 Imaris. All rights reserved.