Class ExtractBoundingBoxAreaFromStackGenerator
- All Implemented Interfaces:
Generator<BoundingBox>,TransformingGenerator<BoundingBox,,Stack> ElementWriter<BoundingBox>
public class ExtractBoundingBoxAreaFromStackGenerator
extends RasterGeneratorSelectFormat<BoundingBox>
An iterable-generator that outputs the portion of a stack corresponding to a bounding-box
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGuarantees on the attributes of all images created by the generator.transform(BoundingBox element) 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, writeToFileMethods inherited from class org.anchoranalysis.image.io.stack.output.generator.RasterGenerator
write, writeWithIndex
-
Constructor Details
-
ExtractBoundingBoxAreaFromStackGenerator
-
-
Method Details
-
transform
Description copied from interface:TransformingGeneratorApplies 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:RasterGeneratorGuarantees on the attributes of all images created by the generator.- Specified by:
guaranteedImageAttributesin classRasterGenerator<BoundingBox>- Returns:
- options that are guaranteed to be true of all images by the generator.
-