Class ObjectsAsUniqueValueGenerator
Object
org.anchoranalysis.image.io.stack.output.generator.RasterGenerator<T>
org.anchoranalysis.image.io.stack.output.generator.RasterGeneratorSelectFormat<org.anchoranalysis.image.voxel.object.ObjectCollection>
org.anchoranalysis.image.io.object.output.grayscale.ObjectsAsGrayscaleGenerator
org.anchoranalysis.image.io.object.output.grayscale.ObjectsAsUniqueValueGenerator
- All Implemented Interfaces:
Generator<org.anchoranalysis.image.voxel.object.ObjectCollection>,TransformingGenerator<org.anchoranalysis.image.voxel.object.ObjectCollection,Stack>,ElementWriter<org.anchoranalysis.image.voxel.object.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 Summary
Constructors Constructor Description ObjectsAsUniqueValueGenerator(Dimensions dimensions)Create with a particular dimensions. -
Method Summary
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
-
ObjectsAsUniqueValueGenerator
Create with a particular dimensions.- Parameters:
dimensions- the size and resolution of the image that will be created.
-
-
Method Details
-
transform
public Stack transform(org.anchoranalysis.image.voxel.object.ObjectCollection element) throws OutputWriteFailedException- Throws:
OutputWriteFailedException
-