public abstract class AbstractSource<T extends net.imglib2.type.numeric.NumericType<T>> extends Object implements Source<T>
| Modifier and Type | Field and Description |
|---|---|
protected DefaultInterpolators<T> |
interpolators |
protected String |
name |
protected T |
type |
protected mpicbg.spim.data.sequence.VoxelDimensions |
voxelDimensions |
| Constructor and Description |
|---|
AbstractSource(Supplier<T> typeSupplier,
String name) |
AbstractSource(T type,
String name) |
AbstractSource(T type,
String name,
boolean doBoundingBoxCulling) |
AbstractSource(T type,
String name,
mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions) |
AbstractSource(T type,
String name,
mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions,
boolean doBoundingBoxCulling) |
| 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.
|
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() |
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?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSource, getSourceTransformprotected final T extends net.imglib2.type.numeric.NumericType<T> type
protected final String name
protected final mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions
protected final DefaultInterpolators<T extends net.imglib2.type.numeric.NumericType<T>> interpolators
public AbstractSource(T type, String name, mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions, boolean doBoundingBoxCulling)
public AbstractSource(T type, String name, mpicbg.spim.data.sequence.VoxelDimensions voxelDimensions)
public boolean isPresent(int t)
SourceisPresent in interface Source<T extends net.imglib2.type.numeric.NumericType<T>>t - timepoint indexpublic T getType()
SourcegetType in interface Source<T extends net.imglib2.type.numeric.NumericType<T>>public net.imglib2.RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method)
SourcegetInterpolatedSource in interface Source<T extends net.imglib2.type.numeric.NumericType<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.numeric.NumericType<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.numeric.NumericType<T>>t - timepoint indexlevel - mipmap levelmethod - interpolation method to usestack.public String getName()
SourcegetName in interface Source<T extends net.imglib2.type.numeric.NumericType<T>>public mpicbg.spim.data.sequence.VoxelDimensions getVoxelDimensions()
SourcegetVoxelDimensions in interface Source<T extends net.imglib2.type.numeric.NumericType<T>>null.public int getNumMipmapLevels()
getNumMipmapLevels in interface Source<T extends net.imglib2.type.numeric.NumericType<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.numeric.NumericType<T>>true, if this source participates in bounding box culling.Copyright © 2012–2025 BigDataViewer. All rights reserved.