T - public abstract class RealRandomAccessibleSource<T extends net.imglib2.type.Type<T>> extends Object implements Source<T>
Source wrapping some RealRandomAccessible. Derived concrete
classes must implement getInterval(int, int) to specify which
interval to use for getSource(int, int).| Modifier and Type | Field and Description |
|---|---|
protected net.imglib2.RealRandomAccessible<T> |
accessible |
protected boolean |
doBoundingBoxIntersectionCheck |
protected String |
name |
protected T |
type |
protected mpicbg.spim.data.sequence.VoxelDimensions |
voxelDimensions |
| Constructor and Description |
|---|
RealRandomAccessibleSource(net.imglib2.RealRandomAccessible<T> accessible,
T type,
String name) |
RealRandomAccessibleSource(net.imglib2.RealRandomAccessible<T> accessible,
T type,
String name,
mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions) |
RealRandomAccessibleSource(net.imglib2.RealRandomAccessible<T> accessible,
T type,
String name,
mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions,
boolean doBoundingBoxIntersectionCheck) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doBoundingBoxCulling()
Whether this source participates in bounding box culling.
|
net.imglib2.RealRandomAccessible<? extends net.imglib2.type.mask.Masked<T>> |
getInterpolatedMaskedSource(int t,
int level,
Interpolation method)
Get a
Masked version of the 3D
stack at 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.
|
abstract net.imglib2.Interval |
getInterval(int t,
int level)
Return the interval which should be used to bound the wrapped
(unbounded)
RealRandomAccessible for getSource(int, int). |
net.imglib2.RandomAccessibleInterval<? extends net.imglib2.type.mask.Masked<T>> |
getMaskedSource(int t,
int level)
Get a
Masked version of the 3D stack at
timepoint index t. |
String |
getName()
Get the name of the source.
|
int |
getNumMipmapLevels() |
net.imglib2.RandomAccessibleInterval<T> |
getSource(int t,
int level)
Get the 3D stack at timepoint index t.
|
void |
getSourceTransform(int t,
int level,
net.imglib2.realtransform.AffineTransform3D transform)
Get the transform from the
source at the
given timepoint index and mipmap level into the global coordinate system. |
T |
getType()
Get an instance of the pixel type.
|
mpicbg.spim.data.sequence.VoxelDimensions |
getVoxelDimensions()
Get voxel size and unit for this source.
|
boolean |
isPresent(int t)
Is there a stack at timepoint index t?
|
protected net.imglib2.RealRandomAccessible<T extends net.imglib2.type.Type<T>> accessible
protected final T extends net.imglib2.type.Type<T> type
protected final String name
protected final mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions
protected final boolean doBoundingBoxIntersectionCheck
public RealRandomAccessibleSource(net.imglib2.RealRandomAccessible<T> accessible, T type, String name)
public RealRandomAccessibleSource(net.imglib2.RealRandomAccessible<T> accessible, T type, String name, mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions)
public RealRandomAccessibleSource(net.imglib2.RealRandomAccessible<T> accessible, T type, String name, mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions, boolean doBoundingBoxIntersectionCheck)
public boolean isPresent(int t)
SourceisPresent in interface Source<T extends net.imglib2.type.Type<T>>t - timepoint indexpublic abstract net.imglib2.Interval getInterval(int t, int level)
RealRandomAccessible for getSource(int, int).public net.imglib2.RandomAccessibleInterval<T> getSource(int t, int level)
SourcegetSource in interface Source<T extends net.imglib2.type.Type<T>>t - timepoint indexlevel - mipmap levelstack.public net.imglib2.RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method)
SourcegetInterpolatedSource in interface Source<T extends net.imglib2.type.Type<T>>t - timepoint indexlevel - mipmap levelmethod - interpolation method to usestack.public net.imglib2.RandomAccessibleInterval<? extends net.imglib2.type.mask.Masked<T>> getMaskedSource(int t, int level)
SourceMasked version of the 3D stack at
timepoint index t.
By default, this is just Source.getSource(int, int) augmented with a constant
mask 1.0.
getMaskedSource in interface Source<T extends net.imglib2.type.Type<T>>t - timepoint indexlevel - mipmap levelpublic net.imglib2.RealRandomAccessible<? extends net.imglib2.type.mask.Masked<T>> getInterpolatedMaskedSource(int t, int level, Interpolation method)
SourceMasked version of the 3D
stack at timepoint index t, extended to infinity and interpolated.
By default, this is just Source.getInterpolatedSource(int, int, bdv.viewer.Interpolation) augmented with a
constant mask 1.0.
However, most sources should override this to extend Source.getMaskedSource(int, int) to infinity (with a 0 mask) and
interpolate.
getInterpolatedMaskedSource in interface Source<T extends net.imglib2.type.Type<T>>t - timepoint indexlevel - mipmap levelmethod - interpolation method to usestack.public void getSourceTransform(int t,
int level,
net.imglib2.realtransform.AffineTransform3D transform)
Sourcesource at the
given timepoint index and mipmap level into the global coordinate system.getSourceTransform in interface Source<T extends net.imglib2.type.Type<T>>t - timepoint indexlevel - mipmap leveltransform - is set to the source-to-global transform, that transforms
source coordinates into the global coordinatespublic T getType()
SourcegetType in interface Source<T extends net.imglib2.type.Type<T>>public String getName()
SourcegetName in interface Source<T extends net.imglib2.type.Type<T>>public mpicbg.spim.data.sequence.VoxelDimensions getVoxelDimensions()
SourcegetVoxelDimensions in interface Source<T extends net.imglib2.type.Type<T>>null.public int getNumMipmapLevels()
getNumMipmapLevels in interface Source<T extends net.imglib2.type.Type<T>>public boolean doBoundingBoxCulling()
Source
If true, then this source will only be rendered if its bounding
box, i.e., the interval of Source.getSource(int, int), intersects the
current screen area (when transformed to viewer coordinates).
If false, then this source will be always rendered (if it is
set to be visible.)
doBoundingBoxCulling in interface Source<T extends net.imglib2.type.Type<T>>true, if this source participates in bounding box culling.Copyright © 2012–2025 BigDataViewer. All rights reserved.