Class OverlayObjectMask
An implementation of
Overlay
that draws an ObjectMask
on an image.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionOverlayObjectMask
(ObjectMask object, int id) Creates with a particularObjectMask
and identifier. -
Method Summary
Modifier and TypeMethodDescriptionbox
(DrawOverlay overlayWriter, Dimensions dimensions) A bounding-box around the overlay.createObject
(Dimensions dimensionsEntireImage, BinaryValuesByte binaryValuesOut) Derives an object-mask representation of the overlay to be drawn withoverlayWriter
.boolean
TheObjectMask
to draw.int
hashCode()
-
Constructor Details
-
OverlayObjectMask
Creates with a particularObjectMask
and identifier.- Parameters:
object
- the object-mask.id
- the identifier.
-
-
Method Details
-
box
Description copied from class:Overlay
A bounding-box around the overlay. -
createObject
public ObjectWithProperties createObject(Dimensions dimensionsEntireImage, BinaryValuesByte binaryValuesOut) throws CreateException Description copied from class:Overlay
Derives an object-mask representation of the overlay to be drawn withoverlayWriter
.- Specified by:
createObject
in classOverlay
- Parameters:
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.- Returns:
- the created object-mask with associated properties.
- Throws:
CreateException
- if the object cannot be created successfully.
-
equals
-
hashCode
public int hashCode() -
getObject
TheObjectMask
to draw.
-