public class RandomAccessibleSource4D<T extends NumericType<T>> extends AbstractSource<T>
Modifier and Type | Field and Description |
---|---|
protected int |
currentTimePointIndex |
interpolators, name, type, voxelDimensions
Constructor and Description |
---|
RandomAccessibleSource4D(RandomAccessible<T> img,
Interval interval,
T type,
AffineTransform3D sourceTransform,
String name) |
RandomAccessibleSource4D(RandomAccessible<T> img,
Interval interval,
T type,
AffineTransform3D sourceTransform,
String name,
boolean doBoundingBoxCulling) |
RandomAccessibleSource4D(RandomAccessible<T> img,
Interval interval,
T type,
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.
|
RandomAccessibleInterval<T> |
getSource(int t,
int level)
Get the 3D stack at timepoint index t.
|
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. |
boolean |
isPresent(int t)
Is there a stack at timepoint index t?
|
doBoundingBoxCulling, getName, getNumMipmapLevels, getType, getVoxelDimensions
public RandomAccessibleSource4D(RandomAccessible<T> img, Interval interval, T type, String name)
public RandomAccessibleSource4D(RandomAccessible<T> img, Interval interval, T type, AffineTransform3D sourceTransform, String name)
public RandomAccessibleSource4D(RandomAccessible<T> img, Interval interval, T type, AffineTransform3D sourceTransform, String name, boolean doBoundingBoxCulling)
public boolean isPresent(int t)
Source
isPresent
in interface Source<T extends NumericType<T>>
isPresent
in class AbstractSource<T extends NumericType<T>>
t
- timepoint indexpublic RandomAccessibleInterval<T> getSource(int t, int level)
Source
t
- timepoint indexlevel
- mipmap levelstack
.public RealRandomAccessible<T> getInterpolatedSource(int t, int level, Interpolation method)
Source
getInterpolatedSource
in interface Source<T extends NumericType<T>>
getInterpolatedSource
in class AbstractSource<T extends NumericType<T>>
t
- timepoint indexlevel
- mipmap levelmethod
- interpolation method to usestack
.public void getSourceTransform(int t, int level, AffineTransform3D transform)
Source
source
at the
given timepoint index and mipmap level into the global coordinate system.t
- timepoint indexlevel
- mipmap leveltransform
- is set to the source-to-global transform, that transforms
source coordinates into the global coordinatesCopyright © 2015–2021 Fiji. All rights reserved.