public class N5ImageLoader extends Object implements ViewerImgLoader, MultiResolutionImgLoader
| Modifier and Type | Class and Description |
|---|---|
class |
N5ImageLoader.SetupImgLoader<T extends NativeType<T>,V extends Volatile<T> & NativeType<V>> |
| Constructor and Description |
|---|
N5ImageLoader(File n5File,
AbstractSequenceDescription<?,?,?> sequenceDescription) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Clear the cache.
|
static SimpleCacheArrayLoader<?> |
createCacheArrayLoader(org.janelia.saalfeldlab.n5.N5Reader n5,
String pathName) |
CacheControl |
getCacheControl() |
File |
getN5File() |
N5ImageLoader.SetupImgLoader |
getSetupImgLoader(int setupId) |
void |
setCreatedSharedQueue(SharedQueue createdSharedQueue)
Use the given
SharedQueue to asynchronously load blocks. |
void |
setNumFetcherThreads(int n)
Set the number of fetcher threads that will be created to asynchronously load
blocks.
|
public N5ImageLoader(File n5File, AbstractSequenceDescription<?,?,?> sequenceDescription)
public File getN5File()
public void setNumFetcherThreads(int n)
ViewerImgLoadern=0, but that means that the volatile
versions of images may not work correctly.
This is an optional operation, i.e., some ImgLoader implementations may just ignore it.
This method should be called before using the image loader, otherwise it might not have the desired effect.
setNumFetcherThreads in interface ViewerImgLoaderpublic void setCreatedSharedQueue(SharedQueue createdSharedQueue)
ViewerImgLoaderSharedQueue to asynchronously load blocks.
This is an optional operation, i.e., some ImgLoader implementations may just ignore it.
This method should be called before using the image loader, otherwise it might not have the desired effect.
setCreatedSharedQueue in interface ViewerImgLoaderpublic void close()
public N5ImageLoader.SetupImgLoader getSetupImgLoader(int setupId)
getSetupImgLoader in interface ViewerImgLoadergetSetupImgLoader in interface BasicImgLoadergetSetupImgLoader in interface BasicMultiResolutionImgLoadergetSetupImgLoader in interface ImgLoadergetSetupImgLoader in interface MultiResolutionImgLoaderpublic CacheControl getCacheControl()
getCacheControl in interface ViewerImgLoaderpublic static SimpleCacheArrayLoader<?> createCacheArrayLoader(org.janelia.saalfeldlab.n5.N5Reader n5, String pathName) throws IOException
IOExceptionCopyright © 2012–2022 BigDataViewer. All rights reserved.