Class AssignmentGenerator
Object
org.anchoranalysis.image.io.stack.output.generator.RasterGenerator<T>
org.anchoranalysis.image.io.stack.output.generator.RasterGeneratorSelectFormat<Assignment<org.anchoranalysis.image.voxel.object.ObjectMask>>
org.anchoranalysis.annotation.io.assignment.generator.AssignmentGenerator
- All Implemented Interfaces:
org.anchoranalysis.io.generator.Generator<Assignment<org.anchoranalysis.image.voxel.object.ObjectMask>>,org.anchoranalysis.io.generator.TransformingGenerator<Assignment<org.anchoranalysis.image.voxel.object.ObjectMask>,org.anchoranalysis.image.core.stack.Stack>,org.anchoranalysis.io.output.writer.ElementWriter<Assignment<org.anchoranalysis.image.voxel.object.ObjectMask>>
public class AssignmentGenerator extends RasterGeneratorSelectFormat<Assignment<org.anchoranalysis.image.voxel.object.ObjectMask>>
Outputs a raster showing an
Assignment on a background.
Specifically two tiled backgrounds appear, one left, and one right, and objects are colored on left and right panels, to indicate how they appear in the assignment.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description AssignmentGenerator(DrawColoredObjects objectDrawer, IntFunction<AssignmentColorPool> colorPoolCreator, io.vavr.Tuple2<String,String> names, boolean appendUnassignedCount) -
Method Summary
Modifier and Type Method Description StackWriteAttributesguaranteedImageAttributes()org.anchoranalysis.image.core.stack.Stacktransform(Assignment<org.anchoranalysis.image.voxel.object.ObjectMask> element)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
-
AssignmentGenerator
public AssignmentGenerator(DrawColoredObjects objectDrawer, IntFunction<AssignmentColorPool> colorPoolCreator, io.vavr.Tuple2<String,String> names, boolean appendUnassignedCount)
-
-
Method Details
-
transform
public org.anchoranalysis.image.core.stack.Stack transform(Assignment<org.anchoranalysis.image.voxel.object.ObjectMask> element) throws org.anchoranalysis.io.output.error.OutputWriteFailedException- Throws:
org.anchoranalysis.io.output.error.OutputWriteFailedException
-
guaranteedImageAttributes
- Specified by:
guaranteedImageAttributesin classRasterGenerator<Assignment<org.anchoranalysis.image.voxel.object.ObjectMask>>
-