Class RasterGeneratorDelegateToDisplayStack<T>
Object
RasterGenerator<T>
RasterGeneratorSelectFormat<T>
RasterGeneratorDelegateToDisplayStack<T>
- Type Parameters:
T
- element-type
- All Implemented Interfaces:
Generator<T>
,TransformingGenerator<T,
,Stack> ElementWriter<T>
Delegates a
RasterGeneratorSelectFormat
to a SingleFileTypeGenerator<T,
DisplayStack>
.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionRasterGeneratorDelegateToDisplayStack
(SingleFileTypeGenerator<T, DisplayStack> delegate, boolean rgb) Creates a newRasterGeneratorDelegateToDisplayStack
instance. -
Method Summary
Modifier and TypeMethodDescriptionGuarantees on the attributes of all images created by the generator.Applies any necessary preprocessing to create an element suitable for writing to the filesystem.Methods inherited from class org.anchoranalysis.image.io.stack.output.generator.RasterGeneratorSelectFormat
selectFileExtension, writeToFile
Methods inherited from class org.anchoranalysis.image.io.stack.output.generator.RasterGenerator
write, writeWithIndex
-
Constructor Details
-
RasterGeneratorDelegateToDisplayStack
public RasterGeneratorDelegateToDisplayStack(SingleFileTypeGenerator<T, DisplayStack> delegate, boolean rgb) Creates a newRasterGeneratorDelegateToDisplayStack
instance.- Parameters:
delegate
-rgb
- Whether the raster image that is produced is RGB or not.RGB-A images should never be produced.
-
-
Method Details
-
transform
Description copied from interface:TransformingGenerator
Applies any necessary preprocessing to create an element suitable for writing to the filesystem.- Parameters:
element
- element to be assigned and then transformed.- Returns:
- the transformed element after necessary preprocessing.
- Throws:
OutputWriteFailedException
- if anything goes wrong.
-
guaranteedImageAttributes
Description copied from class:RasterGenerator
Guarantees on the attributes of all images created by the generator.- Specified by:
guaranteedImageAttributes
in classRasterGenerator<T>
- Returns:
- options that are guaranteed to be true of all images by the generator.
-