Class AnnotationComparisonAssigner<T extends Assignment<ObjectMask>>
- Type Parameters:
T- the type ofAssignmentused 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddDefaultOutputs(OutputEnabledMutable outputs) Adds any default outputs that should occur from the assigner.abstract TcreateAssignment(ObjectsToCompare objectsToCompare, Dimensions dimensions, boolean useMIP, InputOutputContext context) Creates an assignment based on the objects to compare.abstract ImageCounterWithStatistics<T> groupForKey(String key) Gets theImageCounterWithStatisticsfor a specific key.abstract booleanChecks if more than one object can exist in the assignment.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
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
Gets theImageCounterWithStatisticsfor a specific key.- Parameters:
key- the key to get the group for.- Returns:
- the
ImageCounterWithStatisticsfor 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
Adds any default outputs that should occur from the assigner.- Parameters:
outputs- theOutputEnabledMutableto add the default outputs to.
-