public class Hdf5ImageLoader.SetupImgLoader extends AbstractViewerSetupImgLoader<UnsignedShortType,VolatileUnsignedShortType> implements MultiResolutionSetupImgLoader<UnsignedShortType>
type, volatileType
Modifier | Constructor and Description |
---|---|
protected |
SetupImgLoader(int setupId,
MipmapInfo mipmapInfo) |
Modifier and Type | Method and Description |
---|---|
RandomAccessibleInterval<UnsignedShortType> |
getImage(int timepointId,
int level,
ImgLoaderHint... hints)
Get the image at the specified timepoint and resolution level.
|
Dimensions |
getImageSize(int timepointId,
int level)
Get the size of an image.
|
MipmapInfo |
getMipmapInfo() |
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.
|
protected <T> RandomAccessibleInterval<T> |
getMissingDataImage(ViewLevelId id,
T constant)
For images that are missing in the hdf5, a constant image is created.
|
RandomAccessibleInterval<VolatileUnsignedShortType> |
getVolatileImage(int timepointId,
int level,
ImgLoaderHint... hints) |
VoxelDimensions |
getVoxelSize(int timepointId)
Get the voxel size of an image.
|
int |
numMipmapLevels()
Get number of resolution levels.
|
protected <T extends NativeType<T>> |
prepareCachedImage(int timepointId,
int level,
LoadingStrategy loadingStrategy,
T type)
Create a
CellImg backed by the cache. |
getImage, getImageType, getVolatileImageType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFloatImage, getFloatImage, getImageSize
getImage, getImageType
protected SetupImgLoader(int setupId, MipmapInfo mipmapInfo)
public RandomAccessibleInterval<UnsignedShortType> 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<UnsignedShortType>
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<VolatileUnsignedShortType> getVolatileImage(int timepointId, int level, ImgLoaderHint... hints)
getVolatileImage
in interface ViewerSetupImgLoader<UnsignedShortType,VolatileUnsignedShortType>
protected <T extends NativeType<T>> RandomAccessibleInterval<T> prepareCachedImage(int timepointId, int level, LoadingStrategy loadingStrategy, T type)
CellImg
backed by the cache.protected <T> RandomAccessibleInterval<T> getMissingDataImage(ViewLevelId id, T constant)
Hdf5ImageLoader.getDimsAndExistence(ViewLevelId)
) then use that. Otherwise
create a 1x1x1 image.public MipmapInfo getMipmapInfo()
public double[][] getMipmapResolutions()
BasicMultiResolutionSetupImgLoader
getMipmapResolutions
in interface BasicMultiResolutionSetupImgLoader<UnsignedShortType>
public AffineTransform3D[] getMipmapTransforms()
BasicMultiResolutionSetupImgLoader
getMipmapTransforms
in interface BasicMultiResolutionSetupImgLoader<UnsignedShortType>
public int numMipmapLevels()
BasicMultiResolutionSetupImgLoader
numMipmapLevels
in interface BasicMultiResolutionSetupImgLoader<UnsignedShortType>
public Dimensions getImageSize(int timepointId, int level)
MultiResolutionSetupImgLoader
SequenceDescription
but pull it from the image file.getImageSize
in interface MultiResolutionSetupImgLoader<UnsignedShortType>
timepointId
- timepoint for which to retrieve the image size.level
- resolution level for which to retrieve the image size.public VoxelDimensions getVoxelSize(int timepointId)
SetupImgLoader
SequenceDescription
but pull it from the image
file.getVoxelSize
in interface SetupImgLoader<UnsignedShortType>
timepointId
- timepoint for which to retrieve the voxel size.Copyright © 2015–2021 Fiji. All rights reserved.