Class AssignmentGenerator

All Implemented Interfaces:
Generator<Assignment<ObjectMask>>, TransformingGenerator<Assignment<ObjectMask>,Stack>, ElementWriter<Assignment<ObjectMask>>

public class AssignmentGenerator extends RasterGeneratorSelectFormat<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 Details

    • AssignmentGenerator

      public AssignmentGenerator(DrawColoredObjects objectDrawer, IntFunction<AssignmentColorPool> colorPoolCreator, io.vavr.Tuple2<String,String> names, boolean appendUnassignedCount)
      Creates a new AssignmentGenerator instance.
      Parameters:
      objectDrawer - How to color objects in the image.
      colorPoolCreator - Creates a AssignmentColorPool given 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