Package org.anchoranalysis.overlay
Class Overlay
Object
Overlay
- Direct Known Subclasses:
OverlayMark
,OverlayObjectMask
An entity that will eventually be drawn on top of an image.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BoundingBox
box
(DrawOverlay overlayWriter, Dimensions dimensions) A bounding-box around the overlay.abstract ObjectWithProperties
createObject
(Dimensions dimensionsEntireImage, BinaryValuesByte binaryValuesOut) Derives an object-mask representation of the overlay to be drawn withoverlayWriter
.abstract boolean
abstract int
hashCode()
-
Constructor Details
-
Overlay
protected Overlay()
-
-
Method Details
-
box
A bounding-box around the overlay.- Parameters:
overlayWriter
- writes the overlay on the image.dimensions
- the dimensions of the containing-image or scene.- Returns:
- the bounding-box.
-
createObject
public abstract ObjectWithProperties createObject(Dimensions dimensionsEntireImage, BinaryValuesByte binaryValuesOut) throws CreateException Derives an object-mask representation of the overlay to be drawn withoverlayWriter
.- 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 abstract int hashCode()
-