Class ObjectsMergedAsMaskGenerator
Object
RasterGenerator<ObjectCollection>
RasterGeneratorSelectFormat<ObjectCollection>
ObjectsAsGrayscaleGenerator
ObjectsMergedAsMaskGenerator
- All Implemented Interfaces:
Generator<ObjectCollection>,TransformingGenerator<ObjectCollection,,Stack> ElementWriter<ObjectCollection>
Writes objects merged together as a mask.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionObjectsMergedAsMaskGenerator(Dimensions dimensions) Create with particular size for the mask image. -
Method Summary
Modifier and TypeMethodDescriptiontransform(ObjectCollection element) Applies any necessary preprocessing to create an element suitable for writing to the filesystem.Methods inherited from class org.anchoranalysis.image.io.object.output.grayscale.ObjectsAsGrayscaleGenerator
dimensions, guaranteedImageAttributesMethods inherited from class org.anchoranalysis.image.io.stack.output.generator.RasterGeneratorSelectFormat
selectFileExtension, writeToFileMethods inherited from class org.anchoranalysis.image.io.stack.output.generator.RasterGenerator
write, writeWithIndex
-
Constructor Details
-
ObjectsMergedAsMaskGenerator
Create with particular size for the mask image.- Parameters:
dimensions- theDimensionsof the image in which the mask should be created (sufficiently large to contain any possible merged objects).
-
-
Method Details
-
transform
Description copied from interface:TransformingGeneratorApplies any necessary preprocessing to create an element suitable for writing to the filesystem.- Parameters:
element- element to be assigned and then transformed.- Returns:
- the transformed element after necessary preprocessing.
- Throws:
OutputWriteFailedException- if anything goes wrong.
-