Package org.anchoranalysis.overlay.bean
Class DrawObject
Draws a representation of an
ObjectMask
on a RGBStack
.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawCollection
(ObjectCollectionWithProperties objects, RGBStack stack, ObjectDrawAttributes attributes) Writes object-masks onto of aRGBStack
- across all of the stack.void
drawCollection
(ObjectCollectionWithProperties objects, RGBStack stack, ObjectDrawAttributes attributes, BoundingBox boxContainer) Writes object-masks onto of aRGBStack
- within a bounding box only.abstract void
drawSingle
(ObjectWithProperties object, RGBStack stack, ObjectDrawAttributes attributes, int iteration, BoundingBox restrictTo) Draws a single-object on top of a RGB-stack.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
DrawObject
public DrawObject()
-
-
Method Details
-
drawCollection
public void drawCollection(ObjectCollectionWithProperties objects, RGBStack stack, ObjectDrawAttributes attributes) throws OperationFailedException Writes object-masks onto of aRGBStack
- across all of the stack.- Parameters:
objects
- object-masks to write.stack
- stack to write masks on top of.attributes
- Extracts attributes from objects relevant to drawing.- Throws:
OperationFailedException
- if the object cannot be successfully drawn.
-
drawCollection
public void drawCollection(ObjectCollectionWithProperties objects, RGBStack stack, ObjectDrawAttributes attributes, BoundingBox boxContainer) throws OperationFailedException Writes object-masks onto of aRGBStack
- within a bounding box only.- Parameters:
objects
- object-masks to write.stack
- Stack to write masks on top of.attributes
- Extracts attributes from objects relevant to drawing.boxContainer
- A bounding box, which restricts where we write out to.- Throws:
OperationFailedException
- if the object cannot be successfully drawn.
-
drawSingle
public abstract void drawSingle(ObjectWithProperties object, RGBStack stack, ObjectDrawAttributes attributes, int iteration, BoundingBox restrictTo) throws OperationFailedException Draws a single-object on top of a RGB-stack.- Parameters:
object
- the object to draw.stack
- the image to draw on.attributes
- attributes for each object when drawing.iteration
- the current iteration.restrictTo
- a restriction on which part of stack we draw onto to (considered in terms of the possibly-zoomed pixel coordinates).- Throws:
OperationFailedException
- if the object cannot be successfully drawn.
-