Package org.anchoranalysis.io.generator
Interface TransformingGenerator<T,S>
- Type Parameters:
T- iteration-typeS- type after any necessary preprocessing
- All Superinterfaces:
ElementWriter<T>,Generator<T>
- All Known Implementing Classes:
AnnotationAggregateCSVGenerator,AssignmentGenerator,ChannelGenerator,CSVGenerator,DictionaryGenerator,DisplayStackGenerator,DrawCroppedObjectsGenerator,DrawObjectOnStackGenerator,DrawObjectsGenerator,ExtractBoundingBoxAreaFromStackGenerator,FeatureTableCSVGenerator,FlattenStackGenerator,HDF5ObjectsGenerator,HistogramCSVGenerator,ObjectAsMaskGenerator,ObjectOutputStreamGenerator,ObjectsAsGrayscaleGenerator,ObjectsAsRGBGenerator,ObjectsAsUniqueValueGenerator,ObjectsMergedAsMaskGenerator,OneStageGenerator,RasterGenerator,RasterGeneratorBridge,RasterGeneratorDelegateToDisplayStack,RasterGeneratorDelegateToRaster,RasterGeneratorSelectFormat,SerializedGenerator,SingleFileTypeGenerator,SingleFileTypeGeneratorBridge,StackGenerator,StringGenerator,TransformingGeneratorBridge,XMLGenerator,XStreamGenerator
Performs preprocessing to transform the element into another type before being written to the
filesystem.
- Author:
- Owen Feehan
-
Method Summary
Methods inherited from interface org.anchoranalysis.io.output.writer.ElementWriter
write, writeWithIndex
-
Method Details
-
transform
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.
-