public abstract class AbstractImgLoader extends Object implements LegacyImgLoader<UnsignedShortType>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractImgLoader() |
| Modifier and Type | Method and Description |
|---|---|
Dimensions |
getImageSize(ViewId view)
Get the size of an image.
|
UnsignedShortType |
getImageType() |
VoxelDimensions |
getVoxelSize(ViewId view)
Get the voxel size of an image.
|
protected abstract void |
loadMetaData(ViewId view)
Loads only the metadata from the image, should call updateMetaDataCache( ...
|
protected static void |
normalize(Img<FloatType> img) |
protected void |
updateMetaDataCache(ViewId viewId,
int w,
int h,
int d,
double calX,
double calY,
double calZ)
Updates the cached imageMetaData
|
void |
updateXMLMetaData(List<? extends ViewSetup> setups,
boolean forceUpdate)
Updates a list of ViewSetups using the imageMetaDataCache
|
void |
updateXMLMetaData(SpimData data,
boolean forceUpdate)
Updates the ViewSetups using the imageMetaDataCache
|
boolean |
updateXMLMetaData(ViewSetup setup,
boolean forceUpdate)
Updates one specific ViewSetup using the imageMetaDataCache
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFloatImagegetImageprotected void updateMetaDataCache(ViewId viewId, int w, int h, int d, double calX, double calY, double calZ)
protected abstract void loadMetaData(ViewId view)
view - public Dimensions getImageSize(ViewId view)
LegacyImgLoaderSequenceDescription but pull it from the image file.getImageSize in interface LegacyImgLoader<UnsignedShortType>view - timepoint and setup for which to retrieve the image size.public VoxelDimensions getVoxelSize(ViewId view)
LegacyImgLoaderSequenceDescription but pull it from the image file.getVoxelSize in interface LegacyImgLoader<UnsignedShortType>view - timepoint and setup for which to retrieve the voxel size.public UnsignedShortType getImageType()
getImageType in interface LegacyBasicImgLoader<UnsignedShortType>public void updateXMLMetaData(SpimData data, boolean forceUpdate)
public void updateXMLMetaData(List<? extends ViewSetup> setups, boolean forceUpdate)
setups - - a list of ViewSetups can could be potentially updatedforceUpdate - - overwrite the data if it is already presentpublic boolean updateXMLMetaData(ViewSetup setup, boolean forceUpdate)
setup - - ViewSetups that can potentially be updated if it is in the cacheforceUpdate - - overwrite the data if it is already presentCopyright © 2015–2021 Fiji. All rights reserved.