Module org.bigdataviewer.core
Package bdv.util
Class RandomAccessibleSource<T extends net.imglib2.type.numeric.NumericType<T>>
- java.lang.Object
-
- bdv.util.AbstractSource<T>
-
- bdv.util.RandomAccessibleSource<T>
-
- All Implemented Interfaces:
Source<T>
public class RandomAccessibleSource<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 RandomAccessibleSource(net.imglib2.RandomAccessible<T> img, net.imglib2.Interval interval, T type, String name)RandomAccessibleSource(net.imglib2.RandomAccessible<T> img, net.imglib2.Interval interval, T type, net.imglib2.realtransform.AffineTransform3D sourceTransform, String name)RandomAccessibleSource(net.imglib2.RandomAccessible<T> img, net.imglib2.Interval interval, 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<? extends net.imglib2.type.mask.Masked<T>>getInterpolatedMaskedSource(int t, int level, Interpolation method)Get aMaskedversion of the3D stackat timepoint index t, extended to infinity and interpolated.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<? extends net.imglib2.type.mask.Masked<T>>getMaskedSource(int t, int level)Get aMaskedversion of the3D stackat timepoint index t.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, getName, getNumMipmapLevels, getType, getVoxelDimensions, isPresent
-
-
-
-
Constructor Detail
-
RandomAccessibleSource
public RandomAccessibleSource(net.imglib2.RandomAccessible<T> img, net.imglib2.Interval interval, T type, String name)
-
RandomAccessibleSource
public RandomAccessibleSource(net.imglib2.RandomAccessible<T> img, net.imglib2.Interval interval, T type, net.imglib2.realtransform.AffineTransform3D sourceTransform, String name)
-
RandomAccessibleSource
public RandomAccessibleSource(net.imglib2.RandomAccessible<T> img, net.imglib2.Interval interval, 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.
-
getMaskedSource
public net.imglib2.RandomAccessibleInterval<? extends net.imglib2.type.mask.Masked<T>> getMaskedSource(int t, int level)
Description copied from interface:SourceGet aMaskedversion of the3D stackat timepoint index t.By default, this is just
Source.getSource(int, int)augmented with a constant mask1.0.- Specified by:
getMaskedSourcein interfaceSource<T extends net.imglib2.type.numeric.NumericType<T>>- Overrides:
getMaskedSourcein classAbstractSource<T extends net.imglib2.type.numeric.NumericType<T>>- Parameters:
t- timepoint indexlevel- mipmap level- Returns:
- the masked 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.
-
getInterpolatedMaskedSource
public net.imglib2.RealRandomAccessible<? extends net.imglib2.type.mask.Masked<T>> getInterpolatedMaskedSource(int t, int level, Interpolation method)
Description copied from interface:SourceGet aMaskedversion of the3D stackat timepoint index t, extended to infinity and interpolated.By default, this is just
Source.getInterpolatedSource(int, int, bdv.viewer.Interpolation)augmented with a constant mask1.0.However, most sources should override this to extend
Source.getMaskedSource(int, int)to infinity (with a0mask) and interpolate.- Specified by:
getInterpolatedMaskedSourcein interfaceSource<T extends net.imglib2.type.numeric.NumericType<T>>- Overrides:
getInterpolatedMaskedSourcein 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
-
-