public class AssignmentGenerator extends RasterGeneratorSelectFormat<Assignment<ObjectMask>>
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.
Constructor and Description |
---|
AssignmentGenerator(DrawColoredObjects objectDrawer,
java.util.function.IntFunction<AssignmentColorPool> colorPoolCreator,
io.vavr.Tuple2<String,String> names,
boolean appendUnassignedCount) |
Modifier and Type | Method and Description |
---|---|
StackWriteAttributes |
guaranteedImageAttributes()
Guarantees on the attributes of all images created by the generator.
|
Stack |
transform(Assignment<ObjectMask> element)
Applies any necessary preprocessing to create an element suitable for writing to the
filesystem.
|
selectFileExtension, writeToFile
write, writeWithIndex
public AssignmentGenerator(DrawColoredObjects objectDrawer, java.util.function.IntFunction<AssignmentColorPool> colorPoolCreator, io.vavr.Tuple2<String,String> names, boolean appendUnassignedCount)
public Stack transform(Assignment<ObjectMask> element) throws OutputWriteFailedException
TransformingGenerator
element
- element to be assigned and then transformedOutputWriteFailedException
- if anything goes wrongpublic StackWriteAttributes guaranteedImageAttributes()
RasterGenerator
guaranteedImageAttributes
in class RasterGenerator<Assignment<ObjectMask>>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.