Class OverlayObjectMask
Object
org.anchoranalysis.overlay.Overlay
org.anchoranalysis.overlay.object.OverlayObjectMask
public class OverlayObjectMask extends Overlay
An implementation of
Overlay that draws an ObjectMask on an image.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description OverlayObjectMask(org.anchoranalysis.image.voxel.object.ObjectMask object, int id)Creates with a particularObjectMaskand identifier. -
Method Summary
Modifier and Type Method Description org.anchoranalysis.spatial.box.BoundingBoxbox(DrawOverlay overlayWriter, Dimensions dimensions)A bounding-box around the overlay.ObjectWithPropertiescreateObject(Dimensions dimensionsEntireImage, org.anchoranalysis.image.voxel.binary.values.BinaryValuesByte binaryValuesOut)Derives an object-mask representation of the overlay to be drawn withoverlayWriter.booleanequals(Object other)ObjectWithPropertiesgetObject()TheObjectMaskto draw.inthashCode()
-
Constructor Details
-
OverlayObjectMask
public OverlayObjectMask(org.anchoranalysis.image.voxel.object.ObjectMask object, int id)Creates with a particularObjectMaskand identifier.- Parameters:
object- the object-mask.id- the identifier.
-
-
Method Details
-
box
public org.anchoranalysis.spatial.box.BoundingBox box(DrawOverlay overlayWriter, Dimensions dimensions)Description copied from class:OverlayA bounding-box around the overlay. -
createObject
public ObjectWithProperties createObject(Dimensions dimensionsEntireImage, org.anchoranalysis.image.voxel.binary.values.BinaryValuesByte binaryValuesOut) throws CreateExceptionDescription copied from class:OverlayDerives an object-mask representation of the overlay to be drawn withoverlayWriter.- Specified by:
createObjectin 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
TheObjectMaskto draw.
-