public class ObjectAsMaskGenerator extends RasterGeneratorSelectFormat<ObjectMask>
Constructor and Description |
---|
ObjectAsMaskGenerator()
Creates using a default image-resolution.
|
ObjectAsMaskGenerator(Optional<Resolution> resolution) |
Modifier and Type | Method and Description |
---|---|
StackWriteAttributes |
guaranteedImageAttributes()
Guarantees on the attributes of all images created by the generator.
|
Stack |
transform(ObjectMask element)
Applies any necessary preprocessing to create an element suitable for writing to the
filesystem.
|
selectFileExtension, writeToFile
write, writeWithIndex
public ObjectAsMaskGenerator()
public ObjectAsMaskGenerator(Optional<Resolution> resolution)
public Stack transform(ObjectMask element) throws OutputWriteFailedException
TransformingGenerator
element
- element to be assigned and then transformedOutputWriteFailedException
- if anything goes wrongpublic StackWriteAttributes guaranteedImageAttributes()
RasterGenerator
guaranteedImageAttributes
in class RasterGenerator<ObjectMask>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.