Module org.bigdataviewer.core
Package bdv.util
Class VolatileSource<T extends net.imglib2.type.numeric.NumericType<T>,V extends net.imglib2.Volatile<T> & net.imglib2.type.numeric.NumericType<V>>
- java.lang.Object
-
- bdv.util.AbstractSource<V>
-
- bdv.util.VolatileSource<T,V>
-
- All Implemented Interfaces:
Source<V>
- Direct Known Subclasses:
VolatileRandomAccessibleIntervalMipmapSource
public class VolatileSource<T extends net.imglib2.type.numeric.NumericType<T>,V extends net.imglib2.Volatile<T> & net.imglib2.type.numeric.NumericType<V>> extends AbstractSource<V>
-
-
Field Summary
-
Fields inherited from class bdv.util.AbstractSource
interpolators, name, type, voxelDimensions
-
-
Constructor Summary
Constructors Constructor Description VolatileSource(Source<T> source, Supplier<V> typeSupplier, SharedQueue queue)VolatileSource(Source<T> source, V type, SharedQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumMipmapLevels()net.imglib2.RandomAccessibleInterval<V>getSource(int t, int level)Get the 3D stack at timepoint index t.voidgetSourceTransform(int t, int level, net.imglib2.realtransform.AffineTransform3D transform)Get the transform from thesourceat the given timepoint index and mipmap level into the global coordinate system.mpicbg.spim.data.sequence.VoxelDimensionsgetVoxelDimensions()Get voxel size and unit for this source.-
Methods inherited from class bdv.util.AbstractSource
doBoundingBoxCulling, getInterpolatedMaskedSource, getInterpolatedSource, getMaskedSource, getName, getType, isPresent
-
-
-
-
Constructor Detail
-
VolatileSource
public VolatileSource(Source<T> source, V type, SharedQueue queue)
-
VolatileSource
public VolatileSource(Source<T> source, Supplier<V> typeSupplier, SharedQueue queue)
-
-
Method Detail
-
getSource
public net.imglib2.RandomAccessibleInterval<V> getSource(int t, int level)
Description copied from interface:SourceGet the 3D stack at timepoint index t.- Parameters:
t- timepoint indexlevel- mipmap level- Returns:
- the
stack.
-
getSourceTransform
public void getSourceTransform(int t, int level, net.imglib2.realtransform.AffineTransform3D transform)Description copied from interface:SourceGet the transform from thesourceat the given timepoint index and mipmap level into the global coordinate system.- Parameters:
t- timepoint indexlevel- mipmap leveltransform- is set to the source-to-global transform, that transforms source coordinates into the global coordinates
-
getVoxelDimensions
public mpicbg.spim.data.sequence.VoxelDimensions getVoxelDimensions()
Description copied from interface:SourceGet voxel size and unit for this source. May return null.- Specified by:
getVoxelDimensionsin interfaceSource<T extends net.imglib2.type.numeric.NumericType<T>>- Overrides:
getVoxelDimensionsin classAbstractSource<V extends net.imglib2.Volatile<T> & net.imglib2.type.numeric.NumericType<V>>- Returns:
- voxel size and unit or
null.
-
getNumMipmapLevels
public int getNumMipmapLevels()
- Specified by:
getNumMipmapLevelsin interfaceSource<T extends net.imglib2.type.numeric.NumericType<T>>- Overrides:
getNumMipmapLevelsin classAbstractSource<V extends net.imglib2.Volatile<T> & net.imglib2.type.numeric.NumericType<V>>
-
-