public class ViewTransforms extends Object
Views
.
Warning: The transformations used in Views
are always
inverse to the operations that are performed by the views.
Constructor and Description |
---|
ViewTransforms() |
Modifier and Type | Method and Description |
---|---|
static MixedTransform |
addDimension(int numDimensions)
Returns the transformation that is used by
Views.addDimension(RandomAccessible) . |
static MixedTransform |
hyperSlice(int numDimensions,
int d,
long pos)
Returns the transformation that is used by
Views.hyperSlice(RandomAccessible, int, long) . |
static MixedTransform |
invertAxis(int numDimensions,
int d)
Returns the transformation that is used by
Views.invertAxis(RandomAccessible, int) . |
static MixedTransform |
moveAxis(int numDimensions,
int fromAxis,
int toAxis)
Returns the transformation that is used by
Views.moveAxis(RandomAccessible, int, int) . |
static Mixed |
permute(int numDimensions,
int fromAxis,
int toAxis)
Returns the transformation that is used by
Views.permute(RandomAccessible, int, int) . |
static Mixed |
rotate(int numDimensions,
int fromAxis,
int toAxis)
Returns the transformation that is used by
Views.rotate(RandomAccessible, int, int) . |
static MixedTransform |
translate(long... translation)
Returns the transformation that is used by
Views.translate(RandomAccessible, long...) . |
static MixedTransform |
translateInverse(long... translation)
Returns the transformation that is used by
Views.translateInverse(RandomAccessible, long...) . |
static MixedTransform |
zeroMin(Interval interval)
Returns the transformation that is used by
Views.zeroMin(RandomAccessibleInterval) . |
public static Mixed rotate(int numDimensions, int fromAxis, int toAxis)
Views.rotate(RandomAccessible, int, int)
.
Warning: The transformations used in Views
are always
inverse to the operations that are performed by the views.
The rotation returned by this operation therefore is inverse to the
rotation described in Views.rotate(RandomAccessible, int, int)
public static Mixed permute(int numDimensions, int fromAxis, int toAxis)
Views.permute(RandomAccessible, int, int)
.
Warning: The transformations used in Views
are always
inverse to the operations that are performed by the views.
But that's not important for this type of permutation. As
the permutation stays the same when inverted.
public static MixedTransform hyperSlice(int numDimensions, int d, long pos)
Views.hyperSlice(RandomAccessible, int, long)
.
Warning: The transformations used in Views
are always
inverse to the operations that are performed by the views.
numDimensions
- Number of dimensions including that dimension
that is sliced / inserted.d
- Index of that dimension that is sliced / inserted.pos
- Position of the slice / value of the coordinate that's
inserted.public static MixedTransform translate(long... translation)
Views.translate(RandomAccessible, long...)
.
Warning: The transformation used by a view in Views
is always
inverse to the operation that is performed by the View.
Therefore this method actually returns the inverse translation.
public static MixedTransform translateInverse(long... translation)
Views.translateInverse(RandomAccessible, long...)
.
Warning: The transformation used by a view in Views
is always
inverse to the operation that is performed by the View.
Therefore this method actually returns the (not inverse) translation.
public static MixedTransform moveAxis(int numDimensions, int fromAxis, int toAxis)
Views.moveAxis(RandomAccessible, int, int)
.
Warning: The transformation used by a view in Views
is always
inverse to the operation that is performed by the View.
Therefore the axis permutation return by this method
is actually inverse as described in Views.moveAxis(RandomAccessible, int, int)
.
public static MixedTransform zeroMin(Interval interval)
Views.zeroMin(RandomAccessibleInterval)
.
Warning: The transformation used by a view in Views
is always
inverse to the operation that is performed by the View.
public static MixedTransform addDimension(int numDimensions)
Views.addDimension(RandomAccessible)
.
Warning: The transformation used by a view in Views
is always
inverse to the operation that is performed by the View.
numDimensions
- Number of dimensions without
the coordinate that's added/removed.public static MixedTransform invertAxis(int numDimensions, int d)
Views.invertAxis(RandomAccessible, int)
.
Warning: The transformation used by a view in Views
is always
inverse to the operation that is performed by the View.
But that's not relevant here, because inverse of an axis inversion
is the axis inversion itself.
numDimensions
- Number of dimensions of the coordinate space.d
- Index of the coordinate that's inverted.Copyright © 2015–2022 ImgLib2. All rights reserved.