Class Outline
Draws the outline of each object-mask.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawSingle(ObjectWithProperties object, RGBStack stack, ObjectDrawAttributes attributes, int iteration, BoundingBox restrictTo) Draws a single-object on top of a RGB-stack.intThe size of the outline, in terms of the number of voxels.booleanIf true the outline is also applied in the z-dimension, otherwise this is ignored as possible boundaryvoidsetIncludeZ(boolean includeZ) If true the outline is also applied in the z-dimension, otherwise this is ignored as possible boundaryvoidsetOutlineWidth(int outlineWidth) The size of the outline, in terms of the number of voxels.Methods inherited from class org.anchoranalysis.overlay.bean.DrawObject
drawCollection, drawCollectionMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Outline
public Outline()Creates with an outline-width of 1 voxel. -
Outline
public Outline(int outlineWidth) Create with a particular outline-width.- Parameters:
outlineWidth- the size of the outline, in terms of the number of voxels.
-
Outline
public Outline(int outlineWidth, boolean includeZ) Creates a newOutlineinstance.- Parameters:
outlineWidth- The size of the outline, in terms of the number of voxels.includeZ- If true the outline is also applied in the z-dimension, otherwise this is ignored as possible boundary
-
-
Method Details
-
drawSingle
public void drawSingle(ObjectWithProperties object, RGBStack stack, ObjectDrawAttributes attributes, int iteration, BoundingBox restrictTo) throws OperationFailedException Description copied from class:DrawObjectDraws a single-object on top of a RGB-stack.- Specified by:
drawSinglein classDrawObject- 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.
-
getOutlineWidth
public int getOutlineWidth()The size of the outline, in terms of the number of voxels. -
setOutlineWidth
public void setOutlineWidth(int outlineWidth) The size of the outline, in terms of the number of voxels. -
isIncludeZ
public boolean isIncludeZ()If true the outline is also applied in the z-dimension, otherwise this is ignored as possible boundary -
setIncludeZ
public void setIncludeZ(boolean includeZ) If true the outline is also applied in the z-dimension, otherwise this is ignored as possible boundary
-