public class ObjectsAsUniqueValueGenerator extends ObjectsAsGrayscaleGenerator
Note that a maximum of 254 objects are allowed to be written on a channel in this way (for a 8-bit image)
Constructor and Description |
---|
ObjectsAsUniqueValueGenerator(Dimensions dimensions)
Create with a particular dimensions.
|
Modifier and Type | Method and Description |
---|---|
Stack |
transform(ObjectCollection element)
Applies any necessary preprocessing to create an element suitable for writing to the
filesystem.
|
dimensions, guaranteedImageAttributes
selectFileExtension, writeToFile
write, writeWithIndex
public ObjectsAsUniqueValueGenerator(Dimensions dimensions)
dimensions
- the size and resolution of the image that will be created.public Stack transform(ObjectCollection element) throws OutputWriteFailedException
TransformingGenerator
element
- element to be assigned and then transformedOutputWriteFailedException
- if anything goes wrongCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.