Class ObjectsAsGrayscaleGenerator

All Implemented Interfaces:
Generator<ObjectCollection>, TransformingGenerator<ObjectCollection,Stack>, ElementWriter<ObjectCollection>
Direct Known Subclasses:
ObjectsAsUniqueValueGenerator, ObjectsMergedAsMaskGenerator

public abstract class ObjectsAsGrayscaleGenerator extends RasterGeneratorSelectFormat<ObjectCollection>
Base class for generators that accept a set of objects as input.
Author:
Owen Feehan
  • Constructor Details

    • ObjectsAsGrayscaleGenerator

      protected ObjectsAsGrayscaleGenerator(Dimensions dimensions)
      Creates a new ObjectsAsGrayscaleGenerator instance.
      Parameters:
      dimensions - The dimensions associated with the objects (assumed to be constant across any change in element).
  • Method Details

    • guaranteedImageAttributes

      public StackWriteAttributes guaranteedImageAttributes()
      Description copied from class: RasterGenerator
      Guarantees on the attributes of all images created by the generator.
      Specified by:
      guaranteedImageAttributes in class RasterGenerator<ObjectCollection>
      Returns:
      options that are guaranteed to be true of all images by the generator.
    • dimensions

      public Dimensions dimensions()
      The dimensions associated with the objects (assumed to be constant across any change in element).