Class AnnotationComparisonAssigner<T extends Assignment<ObjectMask>>

Object
AnchorBean<AnnotationComparisonAssigner<T>>
AnnotationComparisonAssigner<T>
Type Parameters:
T - the type of Assignment used for object masks.
Direct Known Subclasses:
FeatureCostAssigner, MaskIntersectionAssigner

public abstract class AnnotationComparisonAssigner<T extends Assignment<ObjectMask>> extends AnchorBean<AnnotationComparisonAssigner<T>>
Compares similar object-sets produced from two different sources.

An assignment is created indicating the differences and similarities between the object-sets.

Author:
Owen Feehan
  • Constructor Details

    • AnnotationComparisonAssigner

      public AnnotationComparisonAssigner()
  • Method Details

    • createAssignment

      public abstract T createAssignment(ObjectsToCompare objectsToCompare, Dimensions dimensions, boolean useMIP, InputOutputContext context) throws CreateException
      Creates an assignment based on the objects to compare.
      Parameters:
      objectsToCompare - the objects to compare.
      dimensions - the dimensions of the image.
      useMIP - whether to use Maximum Intensity Projection.
      context - the input-output context.
      Returns:
      the created assignment.
      Throws:
      CreateException - if the assignment cannot be created.
    • groupForKey

      public abstract ImageCounterWithStatistics<T> groupForKey(String key)
      Gets the ImageCounterWithStatistics for a specific key.
      Parameters:
      key - the key to get the group for.
      Returns:
      the ImageCounterWithStatistics for the given key.
    • moreThanOneObject

      public abstract boolean moreThanOneObject()
      Checks if more than one object can exist in the assignment.
      Returns:
      true if more than one object can exist, false otherwise.
    • addDefaultOutputs

      public abstract void addDefaultOutputs(OutputEnabledMutable outputs)
      Adds any default outputs that should occur from the assigner.
      Parameters:
      outputs - the OutputEnabledMutable to add the default outputs to.