Class AnnotationComparisonAssigner<T extends Assignment<ObjectMask>>
- Type Parameters:
T
- the type ofAssignment
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addDefaultOutputs
(OutputEnabledMutable outputs) Adds any default outputs that should occur from the assigner.abstract T
createAssignment
(ObjectsToCompare objectsToCompare, Dimensions dimensions, boolean useMIP, InputOutputContext context) Creates an assignment based on the objects to compare.abstract ImageCounterWithStatistics
<T> groupForKey
(String key) Gets theImageCounterWithStatistics
for a specific key.abstract boolean
Checks 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 theImageCounterWithStatistics
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
Adds any default outputs that should occur from the assigner.- Parameters:
outputs
- theOutputEnabledMutable
to add the default outputs to.
-