public class FlattenStackGenerator extends RasterGeneratorDelegateToRaster<Stack,Stack>
StackGenerator
but first applies a maximum-intensity-projection.Constructor and Description |
---|
FlattenStackGenerator(boolean padIfNecessary)
Creates with possible padding.
|
Modifier and Type | Method and Description |
---|---|
protected Stack |
convertBeforeAssign(Stack element)
Converts an element before setting it on the
delegate . |
protected Stack |
convertBeforeTransform(Stack stack)
Converts an element before calling
RasterGeneratorDelegateToRaster.transform(T) on the delegate . |
StackWriteAttributes |
guaranteedImageAttributes()
Guarantees on the attributes of all images created by the generator.
|
getDelegate, transform
selectFileExtension, writeToFile
write, writeWithIndex
public FlattenStackGenerator(boolean padIfNecessary)
padIfNecessary
- iff true, in the specific case of a 2-channel stack, an additional
blank channel is added to make it 3-channels.public StackWriteAttributes guaranteedImageAttributes()
RasterGenerator
guaranteedImageAttributes
in class RasterGeneratorDelegateToRaster<Stack,Stack>
protected Stack convertBeforeAssign(Stack element) throws OperationFailedException
RasterGeneratorDelegateToRaster
delegate
.convertBeforeAssign
in class RasterGeneratorDelegateToRaster<Stack,Stack>
element
- element to convertOperationFailedException
- if anything goes wrong during conversionprotected Stack convertBeforeTransform(Stack stack)
RasterGeneratorDelegateToRaster
RasterGeneratorDelegateToRaster.transform(T)
on the delegate
.convertBeforeTransform
in class RasterGeneratorDelegateToRaster<Stack,Stack>
stack
- stack to convertCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.