Class AssignmentGenerator
- All Implemented Interfaces:
Generator<Assignment<ObjectMask>>,TransformingGenerator<Assignment<ObjectMask>, Stack>,ElementWriter<Assignment<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
ConstructorsConstructorDescriptionAssignmentGenerator(DrawColoredObjects objectDrawer, IntFunction<AssignmentColorPool> colorPoolCreator, io.vavr.Tuple2<String, String> names, boolean appendUnassignedCount) Creates a newAssignmentGeneratorinstance. -
Method Summary
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) Creates a newAssignmentGeneratorinstance.- Parameters:
objectDrawer- How to color objects in the image.colorPoolCreator- Creates aAssignmentColorPoolgiven a count of paired objects.names- Names to assign respectively to the left and right images.appendUnassignedCount- Whether to append a count of unassigned objects (in parantheses) to the name of each image.
-
-
Method Details
-
transform
- Throws:
OutputWriteFailedException
-
guaranteedImageAttributes
- Specified by:
guaranteedImageAttributesin classRasterGenerator<Assignment<ObjectMask>>
-