public abstract class AbstractSpimSource<T extends NumericType<T>> extends Object implements Source<T>
| Constructor and Description |
|---|
AbstractSpimSource(AbstractSpimData<?> spimData,
int setupId,
String name) |
| Modifier and Type | Method and Description |
|---|---|
RealRandomAccessible<T> |
getInterpolatedSource(int t,
int level,
Interpolation method)
Get the 3D stack at timepoint index t, extended to infinity and interpolated.
|
RealRandomAccessible<T> |
getInterpolatedSource(int t,
int level,
Interpolation method,
ThreadGroup threadGroup) |
String |
getName()
Get the name of the source.
|
int |
getNumMipmapLevels() |
int |
getSetupId() |
RandomAccessibleInterval<T> |
getSource(int t,
int level)
Get the 3D stack at timepoint index t.
|
RandomAccessibleInterval<T> |
getSource(int t,
int level,
ThreadGroup threadGroup) |
void |
getSourceTransform(int t,
int level,
AffineTransform3D transform)
Get the transform from the
source at the
given timepoint index and mipmap level into the global coordinate system. |
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(AbstractSpimData<?> spimData, int setupId, String name)
public boolean isPresent(int t)
SourceisPresent in interface Source<T extends NumericType<T>>t - timepoint indexpublic RandomAccessibleInterval<T> getSource(int t, int level)
Sourcepublic RandomAccessibleInterval<T> getSource(int t, int level, ThreadGroup threadGroup)
public RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method)
SourcegetInterpolatedSource in interface Source<T extends NumericType<T>>t - timepoint indexlevel - mipmap levelmethod - interpolation method to usestack.public RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method, ThreadGroup threadGroup)
public void getSourceTransform(int t,
int level,
AffineTransform3D transform)
Sourcesource at the
given timepoint index and mipmap level into the global coordinate system.getSourceTransform in interface Source<T extends 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 NumericType<T>>public VoxelDimensions getVoxelDimensions()
SourcegetVoxelDimensions in interface Source<T extends NumericType<T>>null.public int getNumMipmapLevels()
getNumMipmapLevels in interface Source<T extends 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.
Copyright © 2012–2024 BigDataViewer. All rights reserved.