Module org.bonej.bonej_plugins
Class HyperstackUtils.Subspace<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>>
java.lang.Object
org.bonej.wrapperPlugins.wrapperUtils.HyperstackUtils.Subspace<T>
- Enclosing class:
HyperstackUtils
public static final class HyperstackUtils.Subspace<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>>
extends Object
A class which stores a subspace interval of an n-dimensional hyperspace,
and metadata
The metadata describes the position of the subspace in the hyperspace.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classDescribes the metadata of the subspace in relation to one of the axes in the hyperspace -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionTypes of the additional hyperspace dimensionsPosition of the subspace in each additional dimension of the hyperspace.Subscripts of the additional hyperspace dimensionstoString()
-
Field Details
-
interval
public final net.imglib2.RandomAccessibleInterval<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>> interval
-
-
Method Details
-
getAxisTypes
Types of the additional hyperspace dimensionsFor example a 3D {X, Y, Z} subspace of a 5D {X, Y, C, Z, T} hyperspace, would have types {Axes.CHANNEL, Axes.TIME}.
- Returns:
- a stream of the types in order.
-
getPosition
Position of the subspace in each additional dimension of the hyperspace.For example, one 3D {X, Y, Z} subspace of a 5D {X, Y, C, Z, T} hyperspace, would have position {0, 1} - 1st channel, 2nd frame.
- Returns:
- a stream of the positions in order.
-
getSubScripts
Subscripts of the additional hyperspace dimensionsSubscripts identify multiple axis of the same type
For example a 3D {X, Y} subspace of a 6D {X, Y, C, Z, T, T} hyperspace, would have subscripts {1, 1, 1, 2}.
- Returns:
- a stream of the positions in order.
-
toString
-