Class StackGenerator

All Implemented Interfaces:
Generator<Stack>, TransformingGenerator<Stack,​Stack>, ElementWriter<Stack>

public class StackGenerator
extends RasterGeneratorSelectFormat<Stack>
Writes a stack to the filesystem.
Author:
Owen Feehan
  • Constructor Details

    • StackGenerator

      public StackGenerator​(boolean always2D)
      Creates a generator that performs no padding.
      Parameters:
      always2D - when true, this indicates that the stack is guaranteed to be always 2D.
    • StackGenerator

      public StackGenerator​(boolean padIfNecessary, boolean always2D)
      Creates the generator from a stack, inferring whether all stacks will be 2D from this stack's dimensions.
      Parameters:
      padIfNecessary - iff true, in the specific case of a 2-channel stack, an additional blank channel is added to make it 3-channels.
      always2D - when true, this indicates that the stack is guaranteed to be always 2D.
    • StackGenerator

      public StackGenerator​(boolean padIfNecessary, StackWriteAttributes writeOptions)
  • Method Details