- java.lang.Object
-
- bdv.AbstractViewerSetupImgLoader<net.imglib2.type.numeric.ARGBType,net.imglib2.type.volatiles.VolatileARGBType>
-
- bdv.img.catmaid.CatmaidImageLoader
-
- All Implemented Interfaces:
ViewerImgLoader,ViewerSetupImgLoader<net.imglib2.type.numeric.ARGBType,net.imglib2.type.volatiles.VolatileARGBType>,mpicbg.spim.data.generic.sequence.BasicImgLoader,mpicbg.spim.data.generic.sequence.BasicMultiResolutionImgLoader,mpicbg.spim.data.generic.sequence.BasicMultiResolutionSetupImgLoader<net.imglib2.type.numeric.ARGBType>,mpicbg.spim.data.generic.sequence.BasicSetupImgLoader<net.imglib2.type.numeric.ARGBType>
public class CatmaidImageLoader extends AbstractViewerSetupImgLoader<net.imglib2.type.numeric.ARGBType,net.imglib2.type.volatiles.VolatileARGBType> implements ViewerImgLoader
-
-
Field Summary
-
Fields inherited from class bdv.AbstractViewerSetupImgLoader
type, volatileType
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
-
Methods inherited from class bdv.AbstractViewerSetupImgLoader
getImage, getImageType, getVolatileImageType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface bdv.ViewerImgLoader
setCreatedSharedQueue, setNumFetcherThreads
-
-
-
-
Constructor Detail
-
CatmaidImageLoader
public CatmaidImageLoader(long width, long height, long depth, double zScale, String urlFormat, int tileWidth, int tileHeight, int[][] blockDimensions, boolean topLeft)
-
CatmaidImageLoader
public CatmaidImageLoader(long width, long height, long depth, double zScale, String urlFormat, int tileWidth, int tileHeight, int[][] blockDimensions)
-
CatmaidImageLoader
public CatmaidImageLoader(long width, long height, long depth, double zScale, int numScales, String urlFormat, int tileWidth, int tileHeight, int blockWidth, int blockHeight, boolean topLeft)
-
CatmaidImageLoader
public CatmaidImageLoader(long width, long height, long depth, double zScale, int numScales, String urlFormat, int tileWidth, int tileHeight, int blockWidth, int blockHeight)
-
CatmaidImageLoader
public CatmaidImageLoader(long width, long height, long depth, double zScale, int numScales, String urlFormat, int tileWidth, int tileHeight, boolean topLeft)
-
CatmaidImageLoader
public CatmaidImageLoader(long width, long height, long depth, double zScale, int numScales, String urlFormat, int tileWidth, int tileHeight)
-
-
Method Detail
-
getNumScales
public static final int getNumScales(long width, long height, long tileWidth, long tileHeight)
-
prepareCachedImage
protected <T extends net.imglib2.type.NativeType<T>> VolatileCachedCellImg<T,net.imglib2.img.basictypeaccess.volatiles.array.VolatileIntArray> prepareCachedImage(int timepointId, int setupId, int level, net.imglib2.cache.volatiles.LoadingStrategy loadingStrategy, T type)
Create aVolatileCachedCellImgbacked by the cache. The type should be eitherARGBTypeandVolatileARGBType.
-
getCacheControl
public VolatileGlobalCellCache getCacheControl()
- Specified by:
getCacheControlin interfaceViewerImgLoader
-
getSetupImgLoader
public ViewerSetupImgLoader<?,?> getSetupImgLoader(int setupId)
- Specified by:
getSetupImgLoaderin interfacempicbg.spim.data.generic.sequence.BasicImgLoader- Specified by:
getSetupImgLoaderin interfacempicbg.spim.data.generic.sequence.BasicMultiResolutionImgLoader- Specified by:
getSetupImgLoaderin interfaceViewerImgLoader
-
getImage
public net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.ARGBType> getImage(int timepointId, int level, mpicbg.spim.data.generic.sequence.ImgLoaderHint... hints)
- Specified by:
getImagein interfacempicbg.spim.data.generic.sequence.BasicMultiResolutionSetupImgLoader<net.imglib2.type.numeric.ARGBType>
-
getVolatileImage
public net.imglib2.RandomAccessibleInterval<net.imglib2.type.volatiles.VolatileARGBType> getVolatileImage(int timepointId, int level, mpicbg.spim.data.generic.sequence.ImgLoaderHint... hints)
- Specified by:
getVolatileImagein interfaceViewerSetupImgLoader<net.imglib2.type.numeric.ARGBType,net.imglib2.type.volatiles.VolatileARGBType>
-
getMipmapResolutions
public double[][] getMipmapResolutions()
- Specified by:
getMipmapResolutionsin interfacempicbg.spim.data.generic.sequence.BasicMultiResolutionSetupImgLoader<net.imglib2.type.numeric.ARGBType>
-
getMipmapTransforms
public net.imglib2.realtransform.AffineTransform3D[] getMipmapTransforms()
- Specified by:
getMipmapTransformsin interfacempicbg.spim.data.generic.sequence.BasicMultiResolutionSetupImgLoader<net.imglib2.type.numeric.ARGBType>
-
numMipmapLevels
public int numMipmapLevels()
- Specified by:
numMipmapLevelsin interfacempicbg.spim.data.generic.sequence.BasicMultiResolutionSetupImgLoader<net.imglib2.type.numeric.ARGBType>
-
setCache
public void setCache(VolatileGlobalCellCache cache)
-
-