Class DrawColoredObjects

Object
org.anchoranalysis.annotation.io.assignment.generator.DrawColoredObjects

public class DrawColoredObjects
extends Object
Outlines or completely fills in each ObjectMask with a color.

The color depending on whether it is paired or unpaired in an Assignment.

Author:
Owen Feehan
  • Constructor Details

    • DrawColoredObjects

      public DrawColoredObjects​(org.anchoranalysis.image.core.stack.DisplayStack background, boolean flatten, int outlineWidth)
  • Method Details

    • createObjectsImage

      public org.anchoranalysis.image.core.stack.Stack createObjectsImage​(Assignment<org.anchoranalysis.image.voxel.object.ObjectMask> assignment, boolean left, AssignmentColorPool colorPool) throws org.anchoranalysis.io.output.error.OutputWriteFailedException
      Creates an image with the objects colored, as indicated in the class description.
      Parameters:
      assignment - the assignment to draw.
      left - if true, draws the left objects from the assignment, otherwise the right objects.
      colorPool - the colors to use for drawing objects.
      Returns:
      the stack with the colored objects.
      Throws:
      org.anchoranalysis.io.output.error.OutputWriteFailedException - if the image cannot be created.