All Implemented Interfaces:
Provider<Stack>, ProviderAsStack

public class Arrange extends StackProvider
Creates a stack that combines other stacks.

The stacks to be combined are specified in list.

Instructions on how to combine the stacks are specified in arrange, relative to the order of the elements of list.

Author:
Owen Feehan
  • Constructor Details

    • Arrange

      public Arrange(boolean createShort, boolean forceRGB)
      Shortcut to create with some explicit parameters.
      Parameters:
      createShort - if true, the created raster has unsigned short voxel data type. If false, then unsigned byte.
      forceRGB - iff true, ensures every stack is converted into 3 channels.
    • Arrange

      public Arrange()
  • Method Details

    • addStack

      public void addStack(Provider<Stack> provider)
      Adds a stack to the existing list of stack-providers.
      Parameters:
      provider - the provider of the stack to add.
    • get

      public Stack get() throws ProvisionFailedException
      Description copied from interface: Provider
      Gets or creates an object of type T.
      Returns:
      the object returned by the provider.
      Throws:
      ProvisionFailedException - if the object cannot be returned.
    • getList

      public List<Provider<Stack>> getList()
      The stacks that are passed in respect order into arrange.
    • setList

      public void setList(List<Provider<Stack>> list)
      The stacks that are passed in respect order into arrange.
    • getArrange

      public StackArranger getArrange()
      Determines how the stacks in list are arranged.
    • setArrange

      public void setArrange(StackArranger arrange)
      Determines how the stacks in list are arranged.
    • isForceRGB

      public boolean isForceRGB()
      Iff true, ensures every stack is converted into 3 channels.
    • setForceRGB

      public void setForceRGB(boolean forceRGB)
      Iff true, ensures every stack is converted into 3 channels.
    • isCreateShort

      public boolean isCreateShort()
      If true, the created raster has unsigned short voxel data type. If false, then unsigned byte.
    • setCreateShort

      public void setCreateShort(boolean createShort)
      If true, the created raster has unsigned short voxel data type. If false, then unsigned byte.
    • getInterpolator

      public Interpolator getInterpolator()
      The interpolator to use for scaling images, if needed.
    • setInterpolator

      public void setInterpolator(Interpolator interpolator)
      The interpolator to use for scaling images, if needed.