public class ObjectsMergedAsMaskGenerator extends ObjectsAsGrayscaleGenerator
Constructor and Description |
---|
ObjectsMergedAsMaskGenerator(Dimensions dimensions)
Create with particular size for the mask image.
|
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 ObjectsMergedAsMaskGenerator(Dimensions dimensions)
dimensions
- the Dimensions
of the image in which the mask should be created
(sufficiently large to contain any possible merged objects).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.