Class AbstractImgLoader
java.lang.Object
net.preibisch.mvrecon.fiji.spimdata.imgloaders.AbstractImgLoader
- All Implemented Interfaces:
mpicbg.spim.data.legacy.LegacyBasicImgLoader<net.imglib2.type.numeric.integer.UnsignedShortType>,mpicbg.spim.data.legacy.LegacyImgLoader<net.imglib2.type.numeric.integer.UnsignedShortType>
- Direct Known Subclasses:
AbstractImgFactoryImgLoader,LegacyDHMImgLoader,LegacyMicroManagerImgLoader
public abstract class AbstractImgLoader
extends Object
implements mpicbg.spim.data.legacy.LegacyImgLoader<net.imglib2.type.numeric.integer.UnsignedShortType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidLoads only the metadata from the image, should call updateMetaDataCache( ... )protected voidupdateMetaDataCache(mpicbg.spim.data.sequence.ViewId viewId, int w, int h, int d, double calX, double calY, double calZ) voidupdateXMLMetaData(List<? extends mpicbg.spim.data.sequence.ViewSetup> setups, boolean forceUpdate) Updates a list of ViewSetups using the imageMetaDataCachebooleanupdateXMLMetaData(mpicbg.spim.data.sequence.ViewSetup setup, boolean forceUpdate) Updates one specific ViewSetup using the imageMetaDataCachevoidupdateXMLMetaData(mpicbg.spim.data.SpimData data, boolean forceUpdate) Updates the ViewSetups using the imageMetaDataCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mpicbg.spim.data.legacy.LegacyBasicImgLoader
getImageMethods inherited from interface mpicbg.spim.data.legacy.LegacyImgLoader
getFloatImage
-
Constructor Details
-
AbstractImgLoader
protected AbstractImgLoader()
-
-
Method Details
-
updateMetaDataCache
protected void updateMetaDataCache(mpicbg.spim.data.sequence.ViewId viewId, int w, int h, int d, double calX, double calY, double calZ) -
loadMetaData
Loads only the metadata from the image, should call updateMetaDataCache( ... )- Parameters:
view- - the view to load metadata for
-
getImageSize
- Specified by:
getImageSizein interfacempicbg.spim.data.legacy.LegacyImgLoader<net.imglib2.type.numeric.integer.UnsignedShortType>
-
getVoxelSize
public mpicbg.spim.data.sequence.VoxelDimensions getVoxelSize(mpicbg.spim.data.sequence.ViewId view) - Specified by:
getVoxelSizein interfacempicbg.spim.data.legacy.LegacyImgLoader<net.imglib2.type.numeric.integer.UnsignedShortType>
-
getImageType
- Specified by:
getImageTypein interfacempicbg.spim.data.legacy.LegacyBasicImgLoader<net.imglib2.type.numeric.integer.UnsignedShortType>
-
updateXMLMetaData
Updates the ViewSetups using the imageMetaDataCache- Parameters:
data- - theSpimDataobject that contains allViewSetups can could be potentially updatedforceUpdate- - overwrite the data if it is already present
-
updateXMLMetaData
public void updateXMLMetaData(List<? extends mpicbg.spim.data.sequence.ViewSetup> setups, boolean forceUpdate) Updates a list of ViewSetups using the imageMetaDataCache- Parameters:
setups- - a list ofViewSetups can could be potentially updatedforceUpdate- - overwrite the data if it is already present
-
updateXMLMetaData
Updates one specific ViewSetup using the imageMetaDataCache- Parameters:
setup- -ViewSetups that can potentially be updated if it is in the cacheforceUpdate- - overwrite the data if it is already present- Returns:
- true if something was updated, false if it was not in the cache or if could have been updated but was already there
-