Class HyperstackUtils

java.lang.Object
org.bonej.wrapperPlugins.wrapperUtils.HyperstackUtils

public final class HyperstackUtils extends Object
A static class containing utilities for splitting an n-dimensional hyperstack into arbitrary subspaces

Doesn't copy the subspaces, rather provides HyperstackUtils.Subspace objects, which contain a RandomAccessibleInterval that can be used to traverse a certain subspace. Each HyperstackUtils.Subspace also contains metadata, which locates the subspace in the hyperspace.

The code works for now, but a refactor is in place if/when ImgPlus API changes or is replaced by another metadata rich class.

If you want to split a hyperspace into {X, Y, T} subspaces, and the hyperspace has more than one time dimension, *all* of the time dimensions will be lumped into {X, Y, T1, T2, .. Tn} subspaces. That is, instead of {X, Y, T1}, {X, Y, T2}, .. {X, Y, Tn}.

Author:
Richard Domander