public class RealTransformRealRandomAccessible<T,R extends RealTransform> extends Object implements RealRandomAccessible<T>
RealRandomAccessible
whose samples are generated from a
RealRandomAccessible
transformed by an RealTransform
.
Changing the RealTransform
will affect the
RealTransformRealRandomAccessible
but not any existing
RealRandomAccess
on it because each RealRandomAccess
internally works with a copy of the transform. Make sure that you request
a new RandomAccess
after modifying the transformation.Modifier and Type | Class and Description |
---|---|
class |
RealTransformRealRandomAccessible.RealTransformRealRandomAccess
RealRandomAccess that generates its samples from a source
RealRandomAccessible at coordinates transformed by a
RealTransform . |
Modifier and Type | Field and Description |
---|---|
protected RealRandomAccessible<T> |
source |
protected R |
transformToSource |
Constructor and Description |
---|
RealTransformRealRandomAccessible(RealRandomAccessible<T> source,
R transformToSource) |
Modifier and Type | Method and Description |
---|---|
RealRandomAccessible<T> |
getSource() |
R |
getTransformToSource() |
int |
numDimensions()
Gets the space's number of dimensions.
|
RealTransformRealRandomAccessible.RealTransformRealRandomAccess |
realRandomAccess()
Create a random access sampler for real coordinates.
|
RealTransformRealRandomAccessible.RealTransformRealRandomAccess |
realRandomAccess(RealInterval interval)
To be overridden for
RealTransform that can estimate the
boundaries of a transferred RealInterval . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAt, getAt, getAt
protected final RealRandomAccessible<T> source
protected final R extends RealTransform transformToSource
public RealTransformRealRandomAccessible(RealRandomAccessible<T> source, R transformToSource)
public int numDimensions()
EuclideanSpace
numDimensions
in interface EuclideanSpace
public RealTransformRealRandomAccessible.RealTransformRealRandomAccess realRandomAccess()
RealRandomAccessible
realRandomAccess
in interface RealRandomAccessible<T>
public RealTransformRealRandomAccessible.RealTransformRealRandomAccess realRandomAccess(RealInterval interval)
RealTransform
that can estimate the
boundaries of a transferred RealInterval
.realRandomAccess
in interface RealRandomAccessible<T>
public RealRandomAccessible<T> getSource()
RealRandomAccessible
public R getTransformToSource()
Copyright © 2015–2022 ImgLib2. All rights reserved.