public abstract class AbstractSpimSource<T extends NumericType<T>> extends Object implements Source<T>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractSpimSource.ImgKey |
Modifier and Type | Field and Description |
---|---|
protected UncheckedCache<AbstractSpimSource.ImgKey,RealRandomAccessible<T>> |
cachedInterpolatedSources |
protected UncheckedCache<AbstractSpimSource.ImgKey,RandomAccessibleInterval<T>> |
cachedSources |
protected AffineTransform3D[] |
currentSourceTransforms |
protected int |
currentTimePointIndex |
protected boolean |
currentTimePointIsPresent |
protected static int |
iNearestNeighborMethod |
protected static int |
iNLinearMethod |
protected InterpolatorFactory<T,RandomAccessible<T>>[] |
interpolatorFactories |
protected Set<ViewId> |
missingViews |
protected String |
name |
protected static int |
numInterpolationMethods |
protected int |
numMipmapLevels |
protected int |
setupId |
protected List<TimePoint> |
timePointsOrdered |
protected Map<ViewId,ViewRegistration> |
viewRegistrations |
protected VoxelDimensions |
voxelDimensions |
Constructor and Description |
---|
AbstractSpimSource(AbstractSpimData<?> spimData,
int setupId,
String name) |
Modifier and Type | Method and Description |
---|---|
protected abstract RandomAccessibleInterval<T> |
getImage(int timepointId,
int level) |
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) |
protected abstract AffineTransform3D[] |
getMipmapTransforms() |
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?
|
protected void |
loadTimepoint(int timepointIndex) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doBoundingBoxCulling, getType
protected int currentTimePointIndex
protected boolean currentTimePointIsPresent
protected final AffineTransform3D[] currentSourceTransforms
protected final int setupId
protected final String name
protected final Map<ViewId,ViewRegistration> viewRegistrations
protected final VoxelDimensions voxelDimensions
protected final int numMipmapLevels
protected static final int numInterpolationMethods
protected static final int iNearestNeighborMethod
protected static final int iNLinearMethod
protected final InterpolatorFactory<T extends NumericType<T>,RandomAccessible<T extends NumericType<T>>>[] interpolatorFactories
protected final UncheckedCache<AbstractSpimSource.ImgKey,RandomAccessibleInterval<T extends NumericType<T>>> cachedSources
protected final UncheckedCache<AbstractSpimSource.ImgKey,RealRandomAccessible<T extends NumericType<T>>> cachedInterpolatedSources
public AbstractSpimSource(AbstractSpimData<?> spimData, int setupId, String name)
protected void loadTimepoint(int timepointIndex)
protected abstract AffineTransform3D[] getMipmapTransforms()
protected abstract RandomAccessibleInterval<T> getImage(int timepointId, int level)
public boolean isPresent(int t)
Source
isPresent
in interface Source<T extends NumericType<T>>
t
- timepoint indexpublic RandomAccessibleInterval<T> getSource(int t, int level)
Source
public RandomAccessibleInterval<T> getSource(int t, int level, ThreadGroup threadGroup)
public RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method)
Source
getInterpolatedSource
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)
Source
source
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()
Source
getName
in interface Source<T extends NumericType<T>>
public VoxelDimensions getVoxelDimensions()
Source
getVoxelDimensions
in interface Source<T extends NumericType<T>>
null
.public int getNumMipmapLevels()
getNumMipmapLevels
in interface Source<T extends NumericType<T>>
public int getSetupId()
Copyright © 2015–2021 Fiji. All rights reserved.