public abstract class AbstractSpimSource<T extends net.imglib2.type.numeric.NumericType<T>> extends Object implements Source<T>
| Constructor and Description |
|---|
AbstractSpimSource(mpicbg.spim.data.generic.AbstractSpimData<?> spimData,
int setupId,
String name) |
| Modifier and Type | Method and Description |
|---|---|
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<? extends net.imglib2.type.mask.Masked<T>> |
getInterpolatedMaskedSource(int t,
int level,
Interpolation method,
ThreadGroup threadGroup) |
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.RealRandomAccessible<T> |
getInterpolatedSource(int t,
int level,
Interpolation method,
ThreadGroup threadGroup) |
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. |
net.imglib2.RandomAccessibleInterval<? extends net.imglib2.type.mask.Masked<T>> |
getMaskedSource(int t,
int level,
ThreadGroup threadGroup) |
String |
getName()
Get the name of the source.
|
int |
getNumMipmapLevels() |
int |
getSetupId() |
net.imglib2.RandomAccessibleInterval<T> |
getSource(int t,
int level)
Get the 3D stack at timepoint index t.
|
net.imglib2.RandomAccessibleInterval<T> |
getSource(int t,
int level,
ThreadGroup threadGroup) |
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. |
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?
|
void |
reload()
Invalidate cached source transformations, triggering a reload from
SpimData. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoBoundingBoxCulling, getTypepublic AbstractSpimSource(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, int setupId, String name)
public boolean isPresent(int t)
SourceisPresent in interface Source<T extends net.imglib2.type.numeric.NumericType<T>>t - timepoint indexpublic net.imglib2.RandomAccessibleInterval<T> getSource(int t, int level)
SourcegetSource in interface Source<T extends net.imglib2.type.numeric.NumericType<T>>t - timepoint indexlevel - mipmap levelstack.public net.imglib2.RandomAccessibleInterval<T> getSource(int t, int level, ThreadGroup threadGroup)
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.RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method, ThreadGroup threadGroup)
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.numeric.NumericType<T>>t - timepoint indexlevel - mipmap leveltransform - is set to the source-to-global transform, that transforms
source coordinates into the global coordinatespublic 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 int getSetupId()
public void reload()
SpimData.
Implementation Note: This method was added so that BigStitcher can trigger reloading source transforms from ViewRegistrations. It doesn't currently trigger update of anything else (MissingViews, available timepoints, etc.) However, if the need for these arises, this method would be a good place to put it.
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.RandomAccessibleInterval<? extends net.imglib2.type.mask.Masked<T>> getMaskedSource(int t, int level, ThreadGroup threadGroup)
public 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 net.imglib2.RealRandomAccessible<? extends net.imglib2.type.mask.Masked<T>> getInterpolatedMaskedSource(int t, int level, Interpolation method, ThreadGroup threadGroup)
Copyright © 2012–2025 BigDataViewer. All rights reserved.