public class CatmaidImageLoader extends AbstractViewerSetupImgLoader<ARGBType,VolatileARGBType> implements ViewerImgLoader
type, volatileType| Constructor and Description |
|---|
CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
int numScales,
String urlFormat,
int tileWidth,
int tileHeight) |
CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
int numScales,
String urlFormat,
int tileWidth,
int tileHeight,
boolean topLeft) |
CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
int numScales,
String urlFormat,
int tileWidth,
int tileHeight,
int blockWidth,
int blockHeight) |
CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
int numScales,
String urlFormat,
int tileWidth,
int tileHeight,
int blockWidth,
int blockHeight,
boolean topLeft) |
CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
String urlFormat,
int tileWidth,
int tileHeight,
int[][] blockDimensions) |
CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
String urlFormat,
int tileWidth,
int tileHeight,
int[][] blockDimensions,
boolean topLeft) |
| Modifier and Type | Method and Description |
|---|---|
VolatileGlobalCellCache |
getCacheControl() |
RandomAccessibleInterval<ARGBType> |
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.
|
static int |
getNumScales(long width,
long height,
long tileWidth,
long tileHeight) |
ViewerSetupImgLoader<?,?> |
getSetupImgLoader(int setupId)
Get the
BasicMultiResolutionSetupImgLoader for the specified view
setup. |
RandomAccessibleInterval<VolatileARGBType> |
getVolatileImage(int timepointId,
int level,
ImgLoaderHint... hints) |
int |
numMipmapLevels()
Get number of resolution levels.
|
protected <T extends NativeType<T>> |
prepareCachedImage(int timepointId,
int setupId,
int level,
LoadingStrategy loadingStrategy,
T type)
Create a
VolatileCachedCellImg backed by the cache. |
void |
setCache(VolatileGlobalCellCache cache) |
getImage, getImageType, getVolatileImageTypepublic CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
String urlFormat,
int tileWidth,
int tileHeight,
int[][] blockDimensions,
boolean topLeft)
public CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
String urlFormat,
int tileWidth,
int tileHeight,
int[][] blockDimensions)
public CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
int numScales,
String urlFormat,
int tileWidth,
int tileHeight,
int blockWidth,
int blockHeight,
boolean topLeft)
public CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
int numScales,
String urlFormat,
int tileWidth,
int tileHeight,
int blockWidth,
int blockHeight)
public CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
int numScales,
String urlFormat,
int tileWidth,
int tileHeight,
boolean topLeft)
public CatmaidImageLoader(long width,
long height,
long depth,
double zScale,
int numScales,
String urlFormat,
int tileWidth,
int tileHeight)
public static final int getNumScales(long width,
long height,
long tileWidth,
long tileHeight)
protected <T extends NativeType<T>> VolatileCachedCellImg<T,VolatileIntArray> prepareCachedImage(int timepointId, int setupId, int level, LoadingStrategy loadingStrategy, T type)
VolatileCachedCellImg backed by the cache. The type
should be either ARGBType and VolatileARGBType.public VolatileGlobalCellCache getCacheControl()
getCacheControl in interface ViewerImgLoaderpublic ViewerSetupImgLoader<?,?> getSetupImgLoader(int setupId)
BasicMultiResolutionImgLoaderBasicMultiResolutionSetupImgLoader for the specified view
setup.getSetupImgLoader in interface ViewerImgLoadergetSetupImgLoader in interface BasicImgLoadergetSetupImgLoader in interface BasicMultiResolutionImgLoadersetupId - view setup for which to get the
BasicMultiResolutionSetupImgLoader.BasicMultiResolutionSetupImgLoader for the specified view
setup.public RandomAccessibleInterval<ARGBType> 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()).
getImage in interface BasicMultiResolutionSetupImgLoader<ARGBType>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<VolatileARGBType> getVolatileImage(int timepointId, int level, ImgLoaderHint... hints)
getVolatileImage in interface ViewerSetupImgLoader<ARGBType,VolatileARGBType>public double[][] getMipmapResolutions()
BasicMultiResolutionSetupImgLoadergetMipmapResolutions in interface BasicMultiResolutionSetupImgLoader<ARGBType>public AffineTransform3D[] getMipmapTransforms()
BasicMultiResolutionSetupImgLoadergetMipmapTransforms in interface BasicMultiResolutionSetupImgLoader<ARGBType>public int numMipmapLevels()
BasicMultiResolutionSetupImgLoadernumMipmapLevels in interface BasicMultiResolutionSetupImgLoader<ARGBType>public void setCache(VolatileGlobalCellCache cache)
Copyright © 2015–2021 Fiji. All rights reserved.