Module org.bigdataviewer.core
Package bdv.util
Class RandomAccessibleIntervalSource4D<T extends net.imglib2.type.numeric.NumericType<T>>
- java.lang.Object
-
- bdv.util.AbstractSource<T>
-
- bdv.util.RandomAccessibleIntervalSource4D<T>
-
- All Implemented Interfaces:
Source<T>
public class RandomAccessibleIntervalSource4D<T extends net.imglib2.type.numeric.NumericType<T>> extends AbstractSource<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected intcurrentTimePointIndex-
Fields inherited from class bdv.util.AbstractSource
interpolators, name, type, voxelDimensions
-
-
Constructor Summary
Constructors Constructor Description RandomAccessibleIntervalSource4D(net.imglib2.RandomAccessibleInterval<T> img, T type, String name)RandomAccessibleIntervalSource4D(net.imglib2.RandomAccessibleInterval<T> img, T type, net.imglib2.realtransform.AffineTransform3D sourceTransform, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.imglib2.RealRandomAccessible<T>getInterpolatedSource(int t, int level, Interpolation method)Get the 3D stack at timepoint index t, extended to infinity and interpolated.net.imglib2.RandomAccessibleInterval<T>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.booleanisPresent(int t)Is there a stack at timepoint index t?-
Methods inherited from class bdv.util.AbstractSource
doBoundingBoxCulling, getInterpolatedMaskedSource, getMaskedSource, getName, getNumMipmapLevels, getType, getVoxelDimensions
-
-
-
-
Constructor Detail
-
RandomAccessibleIntervalSource4D
public RandomAccessibleIntervalSource4D(net.imglib2.RandomAccessibleInterval<T> img, T type, String name)
-
RandomAccessibleIntervalSource4D
public RandomAccessibleIntervalSource4D(net.imglib2.RandomAccessibleInterval<T> img, T type, net.imglib2.realtransform.AffineTransform3D sourceTransform, String name)
-
-
Method Detail
-
isPresent
public boolean isPresent(int t)
Description copied from interface:SourceIs there a stack at timepoint index t?- Specified by:
isPresentin interfaceSource<T extends net.imglib2.type.numeric.NumericType<T>>- Overrides:
isPresentin classAbstractSource<T extends net.imglib2.type.numeric.NumericType<T>>- Parameters:
t- timepoint index- Returns:
- true, if there is data for timepoint index t.
-
getSource
public net.imglib2.RandomAccessibleInterval<T> 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.
-
getInterpolatedSource
public net.imglib2.RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method)
Description copied from interface:SourceGet the 3D stack at timepoint index t, extended to infinity and interpolated.- Specified by:
getInterpolatedSourcein interfaceSource<T extends net.imglib2.type.numeric.NumericType<T>>- Overrides:
getInterpolatedSourcein classAbstractSource<T extends net.imglib2.type.numeric.NumericType<T>>- Parameters:
t- timepoint indexlevel- mipmap levelmethod- interpolation method to use- Returns:
- the extended and interpolated
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
-
-