Package org.anchoranalysis.mpp.overlay
Class OverlayMark
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionOverlayMark
(Mark mark, RegionMembershipWithFlags regionMembership) Creates a newOverlayMark
instance. -
Method Summary
Modifier and TypeMethodDescriptionbox
(DrawOverlay overlayWriter, Dimensions dim) A bounding-box around the overlay.protected boolean
createObject
(Dimensions dimensionsEntireImage, BinaryValuesByte binaryValuesOut) Derives an object-mask representation of the overlay to be drawn withoverlayWriter
.boolean
int
Gets the identifier of the mark.getMark()
TheMark
to overlay.int
hashCode()
-
Constructor Details
-
OverlayMark
Creates a newOverlayMark
instance.- Parameters:
mark
- TheMark
to overlay.regionMembership
- The region-membership associated withmark
.
-
-
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.
-
getIdentifier
public int getIdentifier()Gets the identifier of the mark.- Returns:
- the identifier of the
Mark
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getMark
TheMark
to overlay.
-