Class ObjectsAsUniqueValueGenerator

All Implemented Interfaces:
Generator<ObjectCollection>, TransformingGenerator<ObjectCollection,Stack>, ElementWriter<ObjectCollection>

public class ObjectsAsUniqueValueGenerator extends ObjectsAsGrayscaleGenerator
Writes objects as an image with an incrementing unique integer id value for each object.

Note that a maximum of 254 objects are allowed to be written on a channel in this way (for a 8-bit image)

Author:
Owen Feehan
  • Constructor Details

    • ObjectsAsUniqueValueGenerator

      public ObjectsAsUniqueValueGenerator(Dimensions dimensions)
      Create with a particular dimensions.
      Parameters:
      dimensions - the size and resolution of the image that will be created.
  • Method Details