public class StackGenerator extends RasterGeneratorSelectFormat<Stack>
Constructor and Description |
---|
StackGenerator(boolean always2D)
Creates a generator that performs no padding.
|
StackGenerator(boolean padIfNecessary,
boolean always2D)
Creates the generator from a stack, inferring whether all stacks will be 2D from this stack's
dimensions.
|
StackGenerator(boolean padIfNecessary,
StackWriteAttributes writeOptions) |
Modifier and Type | Method and Description |
---|---|
StackWriteAttributes |
guaranteedImageAttributes()
Guarantees on the attributes of all images created by the generator.
|
Stack |
transform(Stack element)
Applies any necessary preprocessing to create an element suitable for writing to the
filesystem.
|
selectFileExtension, writeToFile
write, writeWithIndex
public StackGenerator(boolean always2D)
always2D
- when true, this indicates that the stack is guaranteed to be always 2D.public StackGenerator(boolean padIfNecessary, boolean always2D)
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.public StackGenerator(boolean padIfNecessary, StackWriteAttributes writeOptions)
public Stack transform(Stack element) throws OutputWriteFailedException
TransformingGenerator
element
- element to be assigned and then transformedOutputWriteFailedException
- if anything goes wrongpublic StackWriteAttributes guaranteedImageAttributes()
RasterGenerator
guaranteedImageAttributes
in class RasterGenerator<Stack>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.