public class OverlayObjectMask extends Overlay
Overlay
that draws an ObjectMask
on an image.Constructor and Description |
---|
OverlayObjectMask(ObjectMask object,
int id)
Creates with a particular
ObjectMask and identifier. |
Modifier and Type | Method and Description |
---|---|
BoundingBox |
box(DrawOverlay overlayWriter,
Dimensions dimensions)
A bounding-box around the overlay.
|
ObjectWithProperties |
createObject(Dimensions dimensionsEntireImage,
BinaryValuesByte binaryValuesOut)
Derives an object-mask representation of the overlay to be drawn with
overlayWriter . |
boolean |
equals(Object other) |
ObjectWithProperties |
getObject()
The
ObjectMask to draw. |
int |
hashCode() |
public OverlayObjectMask(ObjectMask object, int id)
ObjectMask
and identifier.object
- the object-mask.id
- the identifier.public BoundingBox box(DrawOverlay overlayWriter, Dimensions dimensions)
Overlay
public ObjectWithProperties createObject(Dimensions dimensionsEntireImage, BinaryValuesByte binaryValuesOut) throws CreateException
Overlay
overlayWriter
.createObject
in class Overlay
dimensionsEntireImage
- how large the image is onto which the overlay will be drawn.binaryValuesOut
- what constitutes on and off pixels in the produced object-mask.CreateException
- if the object cannot be created successfully.public ObjectWithProperties getObject()
ObjectMask
to draw.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.