Module org.bigdataviewer.core
Package bdv.util
Class RandomAccessibleIntervalSource<T extends net.imglib2.type.numeric.NumericType<T>>
- java.lang.Object
-
- bdv.util.AbstractSource<T>
-
- bdv.util.RandomAccessibleIntervalSource<T>
-
- All Implemented Interfaces:
Source<T>
public class RandomAccessibleIntervalSource<T extends net.imglib2.type.numeric.NumericType<T>> extends AbstractSource<T>
-
-
Field Summary
-
Fields inherited from class bdv.util.AbstractSource
interpolators, name, type, voxelDimensions
-
-
Constructor Summary
Constructors Constructor Description RandomAccessibleIntervalSource(net.imglib2.RandomAccessibleInterval<T> img, T type, String name)RandomAccessibleIntervalSource(net.imglib2.RandomAccessibleInterval<T> img, T type, net.imglib2.realtransform.AffineTransform3D sourceTransform, String name)RandomAccessibleIntervalSource(net.imglib2.RandomAccessibleInterval<T> img, T type, net.imglib2.realtransform.AffineTransform3D sourceTransform, String name, boolean doBoundingBoxCulling)
-
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.-
Methods inherited from class bdv.util.AbstractSource
doBoundingBoxCulling, getInterpolatedMaskedSource, getMaskedSource, getName, getNumMipmapLevels, getType, getVoxelDimensions, isPresent
-
-
-
-
Constructor Detail
-
RandomAccessibleIntervalSource
public RandomAccessibleIntervalSource(net.imglib2.RandomAccessibleInterval<T> img, T type, String name)
-
RandomAccessibleIntervalSource
public RandomAccessibleIntervalSource(net.imglib2.RandomAccessibleInterval<T> img, T type, net.imglib2.realtransform.AffineTransform3D sourceTransform, String name)
-
RandomAccessibleIntervalSource
public RandomAccessibleIntervalSource(net.imglib2.RandomAccessibleInterval<T> img, T type, net.imglib2.realtransform.AffineTransform3D sourceTransform, String name, boolean doBoundingBoxCulling)
-
-
Method Detail
-
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
-
-