public class Hdf5ImageLoader extends Object implements ViewerImgLoader, MultiResolutionImgLoader
Modifier and Type | Class and Description |
---|---|
class |
Hdf5ImageLoader.SetupImgLoader |
Modifier and Type | Field and Description |
---|---|
protected VolatileGlobalCellCache |
cache |
protected HashMap<ViewLevelId,DimsAndExistence> |
cachedDimsAndExistence
Maps
ViewLevelId (timepoint, setup, level) to
DimsAndExistence . |
protected ch.systemsx.cisd.hdf5.IHDF5Reader |
existingHdf5Reader
The
Hdf5ImageLoader can be constructed with an existing
IHDF5Reader which if non-null will be used instead of creating a
new one on hdf5File . |
protected FetcherThreads |
fetchers |
protected bdv.img.hdf5.IHDF5Access |
hdf5Access |
protected File |
hdf5File |
protected int |
maxNumLevels |
protected ArrayList<Partition> |
partitions
List of partitions if the dataset is split across several files
|
protected AbstractSequenceDescription<?,?,?> |
sequenceDescription |
protected HashMap<Integer,Hdf5ImageLoader.SetupImgLoader> |
setupImgLoaders
Maps setup id to
Hdf5ImageLoader.SetupImgLoader . |
protected Hdf5VolatileShortArrayLoader |
shortLoader |
Modifier | Constructor and Description |
---|---|
|
Hdf5ImageLoader(File hdf5File,
ArrayList<Partition> hdf5Partitions,
AbstractSequenceDescription<?,?,?> sequenceDescription) |
|
Hdf5ImageLoader(File hdf5File,
ArrayList<Partition> hdf5Partitions,
AbstractSequenceDescription<?,?,?> sequenceDescription,
boolean doOpen) |
protected |
Hdf5ImageLoader(File hdf5File,
ch.systemsx.cisd.hdf5.IHDF5Reader existingHdf5Reader,
ArrayList<Partition> hdf5Partitions,
AbstractSequenceDescription<?,?,?> sequenceDescription,
boolean doOpen) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Clear the cache and close the hdf5 file.
|
boolean |
existsImageData(ViewLevelId id)
Checks whether the given image data is present in the hdf5.
|
VolatileGlobalCellCache |
getCacheControl() |
DimsAndExistence |
getDimsAndExistence(ViewLevelId id) |
File |
getHdf5File() |
ArrayList<Partition> |
getPartitions() |
Hdf5ImageLoader.SetupImgLoader |
getSetupImgLoader(int setupId)
Get the
BasicMultiResolutionSetupImgLoader for the specified view
setup. |
Hdf5VolatileShortArrayLoader |
getShortArrayLoader() |
void |
initCachedDimensionsFromHdf5(boolean background) |
void |
printMipmapInfo() |
protected File hdf5File
protected ch.systemsx.cisd.hdf5.IHDF5Reader existingHdf5Reader
Hdf5ImageLoader
can be constructed with an existing
IHDF5Reader
which if non-null will be used instead of creating a
new one on hdf5File
.
Note that close()
will not close the existingHdf5Reader!
protected bdv.img.hdf5.IHDF5Access hdf5Access
protected VolatileGlobalCellCache cache
protected FetcherThreads fetchers
protected Hdf5VolatileShortArrayLoader shortLoader
protected final HashMap<Integer,Hdf5ImageLoader.SetupImgLoader> setupImgLoaders
Hdf5ImageLoader.SetupImgLoader
.protected final ArrayList<Partition> partitions
protected int maxNumLevels
protected final HashMap<ViewLevelId,DimsAndExistence> cachedDimsAndExistence
ViewLevelId
(timepoint, setup, level) to
DimsAndExistence
. Every entry is either null or the existence and
dimensions of one image. This is filled in when an image is loaded for
the first time.protected final AbstractSequenceDescription<?,?,?> sequenceDescription
public Hdf5ImageLoader(File hdf5File, ArrayList<Partition> hdf5Partitions, AbstractSequenceDescription<?,?,?> sequenceDescription)
hdf5File
- hdf5Partitions
- sequenceDescription
- the AbstractSequenceDescription
. When loading images,
this may be used to retrieve additional information for a
ViewId
, such as setup name, Angle
,
Channel
, etc.public Hdf5ImageLoader(File hdf5File, ArrayList<Partition> hdf5Partitions, AbstractSequenceDescription<?,?,?> sequenceDescription, boolean doOpen)
protected Hdf5ImageLoader(File hdf5File, ch.systemsx.cisd.hdf5.IHDF5Reader existingHdf5Reader, ArrayList<Partition> hdf5Partitions, AbstractSequenceDescription<?,?,?> sequenceDescription, boolean doOpen)
public void close()
public void initCachedDimensionsFromHdf5(boolean background)
public File getHdf5File()
public VolatileGlobalCellCache getCacheControl()
getCacheControl
in interface ViewerImgLoader
public Hdf5VolatileShortArrayLoader getShortArrayLoader()
public boolean existsImageData(ViewLevelId id)
public DimsAndExistence getDimsAndExistence(ViewLevelId id)
public void printMipmapInfo()
public Hdf5ImageLoader.SetupImgLoader getSetupImgLoader(int setupId)
BasicMultiResolutionImgLoader
BasicMultiResolutionSetupImgLoader
for the specified view
setup.getSetupImgLoader
in interface ViewerImgLoader
getSetupImgLoader
in interface BasicImgLoader
getSetupImgLoader
in interface BasicMultiResolutionImgLoader
getSetupImgLoader
in interface ImgLoader
getSetupImgLoader
in interface MultiResolutionImgLoader
setupId
- view setup for which to get the
BasicMultiResolutionSetupImgLoader
.BasicMultiResolutionSetupImgLoader
for the specified view
setup.Copyright © 2015–2021 Fiji. All rights reserved.