public class OpenConnectomeImageLoader extends AbstractViewerSetupImgLoader<net.imglib2.type.numeric.integer.UnsignedByteType,net.imglib2.type.volatiles.VolatileUnsignedByteType> implements ViewerImgLoader
type, volatileType| Constructor and Description |
|---|
OpenConnectomeImageLoader(String baseUrl,
String token,
String mode) |
getImage, getImageType, getVolatileImageTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCreatedSharedQueue, setNumFetcherThreadspublic static final String[] fetchTokenList(String baseUrl) throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, IOException
baseUrl - e.g. "http://openconnecto.me/ocp/ca"Stringscom.google.gson.JsonSyntaxExceptioncom.google.gson.JsonIOExceptionIOExceptionpublic static final OpenConnectomeTokenInfo fetchTokenInfo(String baseUrl, String token) throws com.google.gson.JsonSyntaxException, com.google.gson.JsonIOException, IOException
baseUrl - e.g. "http://openconnecto.me/ocp/ca"token - the token whose information is desiredOpenConnectomeTokenInfo instance that carries the
token informationcom.google.gson.JsonSyntaxExceptioncom.google.gson.JsonIOExceptionIOExceptionpublic static final String[] tryFetchTokenList(String baseUrl, int maxNumTrials)
baseUrl - e.g. "http://openconnecto.me/ocp/ca"maxNumTrials - the maximum number of trialsStrings or null if
maxNumTrials were executed without successpublic static final OpenConnectomeTokenInfo tryFetchTokenInfo(String baseUrl, String token, int maxNumTrials)
baseUrl - e.g. "http://openconnecto.me/ocp/ca"token - maxNumTrials - OpenConnectomeTokenInfo instance that carries the
token information or null if
maxNumTrials were executed without successpublic net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.integer.UnsignedByteType> getImage(int timepointId, int level, mpicbg.spim.data.generic.sequence.ImgLoaderHint... hints)
getImage in interface mpicbg.spim.data.generic.sequence.BasicMultiResolutionSetupImgLoader<net.imglib2.type.numeric.integer.UnsignedByteType>public net.imglib2.RandomAccessibleInterval<net.imglib2.type.volatiles.VolatileUnsignedByteType> getVolatileImage(int timepointId, int level, mpicbg.spim.data.generic.sequence.ImgLoaderHint... hints)
public double[][] getMipmapResolutions()
getMipmapResolutions in interface mpicbg.spim.data.generic.sequence.BasicMultiResolutionSetupImgLoader<net.imglib2.type.numeric.integer.UnsignedByteType>public int numMipmapLevels()
numMipmapLevels in interface mpicbg.spim.data.generic.sequence.BasicMultiResolutionSetupImgLoader<net.imglib2.type.numeric.integer.UnsignedByteType>public net.imglib2.realtransform.AffineTransform3D[] getMipmapTransforms()
getMipmapTransforms in interface mpicbg.spim.data.generic.sequence.BasicMultiResolutionSetupImgLoader<net.imglib2.type.numeric.integer.UnsignedByteType>protected <T extends net.imglib2.type.NativeType<T>> VolatileCachedCellImg<T,net.imglib2.img.basictypeaccess.volatiles.array.VolatileByteArray> prepareCachedImage(int timepointId, int setupId, int level, net.imglib2.cache.volatiles.LoadingStrategy loadingStrategy, T type)
VolatileCachedCellImg backed by the cache. The type
should be either ARGBType and VolatileARGBType.public CacheControl getCacheControl()
getCacheControl in interface ViewerImgLoaderpublic ViewerSetupImgLoader<?,?> getSetupImgLoader(int setupId)
getSetupImgLoader in interface ViewerImgLoadergetSetupImgLoader in interface mpicbg.spim.data.generic.sequence.BasicImgLoadergetSetupImgLoader in interface mpicbg.spim.data.generic.sequence.BasicMultiResolutionImgLoaderCopyright © 2012–2025 BigDataViewer. All rights reserved.