Class ViewTransforms
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MixedTransformaddDimension(int numDimensions) Returns the transformation that is used byViews.addDimension(RandomAccessible).static MixedTransformhyperSlice(int numDimensions, int d, long pos) Returns the transformation that is used byViews.hyperSlice(RandomAccessible, int, long).static MixedTransforminvertAxis(int numDimensions, int d) Returns the transformation that is used byViews.invertAxis(RandomAccessible, int).static MixedTransformmoveAxis(int numDimensions, int fromAxis, int toAxis) Returns the transformation that is used byViews.moveAxis(RandomAccessible, int, int).static Mixedpermute(int numDimensions, int fromAxis, int toAxis) Returns the transformation that is used byViews.permute(RandomAccessible, int, int).static Mixedrotate(int numDimensions, int fromAxis, int toAxis) Returns the transformation that is used byViews.rotate(RandomAccessible, int, int).static MixedTransformtranslate(long... translation) Returns the transformation that is used byViews.translate(RandomAccessible, long...).static MixedTransformtranslateInverse(long... translation) Returns the transformation that is used byViews.translateInverse(RandomAccessible, long...).static MixedTransformReturns the transformation that is used byViews.zeroMin(RandomAccessibleInterval).
-
Constructor Details
-
ViewTransforms
public ViewTransforms()
-
-
Method Details
-
rotate
Returns the transformation that is used byViews.rotate(RandomAccessible, int, int).Warning: The transformations used in
Viewsare 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) -
permute
Returns the transformation that is used byViews.permute(RandomAccessible, int, int).Warning: The transformations used in
Viewsare 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. -
hyperSlice
Returns the transformation that is used byViews.hyperSlice(RandomAccessible, int, long).Warning: The transformations used in
Viewsare always inverse to the operations that are performed by the views.- Parameters:
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.- Returns:
- Transformation that inserts a coordinate at the given index.
-
translate
Returns the transformation that is used byViews.translate(RandomAccessible, long...).Warning: The transformation used by a view in
Viewsis always inverse to the operation that is performed by the View.Therefore this method actually returns the inverse translation.
-
translateInverse
Returns the transformation that is used byViews.translateInverse(RandomAccessible, long...).Warning: The transformation used by a view in
Viewsis always inverse to the operation that is performed by the View.Therefore this method actually returns the (not inverse) translation.
-
moveAxis
Returns the transformation that is used byViews.moveAxis(RandomAccessible, int, int).Warning: The transformation used by a view in
Viewsis 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). -
zeroMin
Returns the transformation that is used byViews.zeroMin(RandomAccessibleInterval).Warning: The transformation used by a view in
Viewsis always inverse to the operation that is performed by the View. -
addDimension
Returns the transformation that is used byViews.addDimension(RandomAccessible).Warning: The transformation used by a view in
Viewsis always inverse to the operation that is performed by the View.- Parameters:
numDimensions- Number of dimensions without the coordinate that's added/removed.- Returns:
- A transformation that removes the last coordinate.
-
invertAxis
Returns the transformation that is used byViews.invertAxis(RandomAccessible, int).Warning: The transformation used by a view in
Viewsis 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.- Parameters:
numDimensions- Number of dimensions of the coordinate space.d- Index of the coordinate that's inverted.- Returns:
- Transformation that inverts the specified coordinate.
-