public abstract class AbstractCachedViewerSetupImgLoader<T extends NativeType<T>,V extends Volatile<T> & NativeType<V>,A extends VolatileAccess> extends AbstractViewerSetupImgLoader<T,V>
ViewerSetupImgLoader
with a VolatileGlobalCellCache.Modifier and Type | Field and Description |
---|---|
protected VolatileGlobalCellCache |
cache |
protected int[][] |
cellDimensions |
protected long[][] |
dimensions |
protected CacheArrayLoader<A> |
loader |
protected AffineTransform3D[] |
mipmapTransforms |
protected double[][] |
resolutions |
protected int |
setupId |
type, volatileType
Constructor and Description |
---|
AbstractCachedViewerSetupImgLoader(int setupId,
long[][] dimensions,
int[][] cellDimensions,
double[][] resolutions,
T type,
V vType,
CacheArrayLoader<A> loader,
VolatileGlobalCellCache cache) |
Modifier and Type | Method and Description |
---|---|
RandomAccessibleInterval<T> |
getImage(int timepointId,
int level,
ImgLoaderHint... hints)
Get the image at the specified timepoint and resolution level.
|
double[][] |
getMipmapResolutions()
Get the sub-sampling factors, indexed by resolution level and dimension.
|
AffineTransform3D[] |
getMipmapTransforms()
Get the transformation from coordinates of the sub-sampled image of a a
resolution level to coordinates of the full resolution image.
|
RandomAccessibleInterval<V> |
getVolatileImage(int timepointId,
int level,
ImgLoaderHint... hints) |
int |
numMipmapLevels()
Get number of resolution levels.
|
protected <S extends NativeType<S>> |
prepareCachedImage(int timepointId,
int level,
LoadingStrategy loadingStrategy,
S t) |
getImage, getImageType, getVolatileImageType
protected final long[][] dimensions
protected final int[][] cellDimensions
protected final double[][] resolutions
protected final AffineTransform3D[] mipmapTransforms
protected VolatileGlobalCellCache cache
protected final CacheArrayLoader<A extends VolatileAccess> loader
protected final int setupId
public AbstractCachedViewerSetupImgLoader(int setupId, long[][] dimensions, int[][] cellDimensions, double[][] resolutions, T type, V vType, CacheArrayLoader<A> loader, VolatileGlobalCellCache cache)
public double[][] getMipmapResolutions()
BasicMultiResolutionSetupImgLoader
public int numMipmapLevels()
BasicMultiResolutionSetupImgLoader
protected <S extends NativeType<S>> VolatileCachedCellImg<S,A> prepareCachedImage(int timepointId, int level, LoadingStrategy loadingStrategy, S t)
public RandomAccessibleInterval<T> getImage(int timepointId, int level, ImgLoaderHint... hints)
BasicMultiResolutionSetupImgLoader
The returned image has pixel type T
(an instance of T
may
be obtained by BasicSetupImgLoader.getImageType()
).
timepointId
- timepoint for which to retrieve the image.level
- resolution level for which to retrieve the image.hints
- optional hints regarding how to load the image.public RandomAccessibleInterval<V> getVolatileImage(int timepointId, int level, ImgLoaderHint... hints)
public AffineTransform3D[] getMipmapTransforms()
BasicMultiResolutionSetupImgLoader
Copyright © 2015–2021 Fiji. All rights reserved.