public class LegacyViewerImgLoaderExtWrapper.SetupImgLoaderWrapper extends Object implements ViewerSetupImgLoader<T,V>, SetupImgLoader<T>
Modifier | Constructor and Description |
---|---|
protected |
SetupImgLoaderWrapper(int setupId) |
Modifier and Type | Method and Description |
---|---|
RandomAccessibleInterval<FloatType> |
getFloatImage(int timepointId,
boolean normalize,
ImgLoaderHint... hints)
Get image at the specified timepoint, converted to
FloatType . |
RandomAccessibleInterval<T> |
getImage(int timepointId,
ImgLoaderHint... hints)
Get the image at the specified timepoint.
|
RandomAccessibleInterval<T> |
getImage(int timepointId,
int level,
ImgLoaderHint... hints)
Get the image at the specified timepoint and resolution level.
|
Dimensions |
getImageSize(int timepointId)
Get the size of an image.
|
T |
getImageType() |
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.
|
RandomAccessibleInterval<V> |
getVolatileImage(int timepointId,
int level,
ImgLoaderHint... hints) |
V |
getVolatileImageType() |
VoxelDimensions |
getVoxelSize(int timepointId)
Get the voxel size of an image.
|
int |
numMipmapLevels()
Get number of resolution levels.
|
public RandomAccessibleInterval<T> getImage(int timepointId, ImgLoaderHint... hints)
BasicSetupImgLoader
The returned image has pixel type T
(an instance of T
may
be obtained by BasicSetupImgLoader.getImageType()
).
getImage
in interface BasicSetupImgLoader<T>
timepointId
- timepoint for which to retrieve the image.hints
- optional hints regarding how to load the image.public T getImageType()
getImageType
in interface BasicSetupImgLoader<T>
public RandomAccessibleInterval<T> 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<T>
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 double[][] getMipmapResolutions()
BasicMultiResolutionSetupImgLoader
getMipmapResolutions
in interface BasicMultiResolutionSetupImgLoader<T>
public AffineTransform3D[] getMipmapTransforms()
BasicMultiResolutionSetupImgLoader
getMipmapTransforms
in interface BasicMultiResolutionSetupImgLoader<T>
public int numMipmapLevels()
BasicMultiResolutionSetupImgLoader
numMipmapLevels
in interface BasicMultiResolutionSetupImgLoader<T>
public RandomAccessibleInterval<V> getVolatileImage(int timepointId, int level, ImgLoaderHint... hints)
getVolatileImage
in interface ViewerSetupImgLoader<T,V extends Volatile<T>>
public V getVolatileImageType()
getVolatileImageType
in interface ViewerSetupImgLoader<T,V extends Volatile<T>>
public RandomAccessibleInterval<FloatType> getFloatImage(int timepointId, boolean normalize, ImgLoaderHint... hints)
SetupImgLoader
FloatType
. If
requested, the image is normalized to the range [0,1].getFloatImage
in interface SetupImgLoader<T>
timepointId
- timepoint for which to retrieve the image.normalize
- whether the image should be normalized to [0,1].hints
- optional hints regarding how to load the image.FloatType
imagepublic Dimensions getImageSize(int timepointId)
SetupImgLoader
SequenceDescription
but pull it from the image file.getImageSize
in interface SetupImgLoader<T>
timepointId
- timepoint 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<T>
timepointId
- timepoint for which to retrieve the voxel size.Copyright © 2015–2021 Fiji. All rights reserved.