Class AnnotationComparisonAssigner<T extends org.anchoranalysis.annotation.io.assignment.Assignment<org.anchoranalysis.image.voxel.object.ObjectMask>>
Object
org.anchoranalysis.bean.AnchorBean<AnnotationComparisonAssigner<T>>
org.anchoranalysis.plugin.annotation.bean.comparison.assigner.AnnotationComparisonAssigner<T>
- Type Parameters:
T- the type ofAssignmentused for object masks.
- Direct Known Subclasses:
FeatureCostAssigner,MaskIntersectionAssigner
public abstract class AnnotationComparisonAssigner<T extends org.anchoranalysis.annotation.io.assignment.Assignment<org.anchoranalysis.image.voxel.object.ObjectMask>> extends org.anchoranalysis.bean.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 Constructor Description AnnotationComparisonAssigner() -
Method Summary
Modifier and Type Method Description abstract voidaddDefaultOutputs(org.anchoranalysis.io.output.enabled.OutputEnabledMutable outputs)Adds any default outputs that should occur from the assigner.abstract TcreateAssignment(ObjectsToCompare objectsToCompare, org.anchoranalysis.image.core.dimensions.Dimensions dimensions, boolean useMIP, org.anchoranalysis.io.output.outputter.InputOutputContext context)Creates an assignment based on the objects to compare.abstract ImageCounterWithStatistics<T>groupForKey(String key)Gets theImageCounterWithStatisticsfor a specific key.abstract booleanmoreThanOneObject()Checks if more than one object can exist in the assignment.
-
Constructor Details
-
AnnotationComparisonAssigner
public AnnotationComparisonAssigner()
-
-
Method Details
-
createAssignment
public abstract T createAssignment(ObjectsToCompare objectsToCompare, org.anchoranalysis.image.core.dimensions.Dimensions dimensions, boolean useMIP, org.anchoranalysis.io.output.outputter.InputOutputContext context) throws org.anchoranalysis.core.exception.CreateExceptionCreates 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:
org.anchoranalysis.core.exception.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
public abstract void addDefaultOutputs(org.anchoranalysis.io.output.enabled.OutputEnabledMutable outputs)Adds any default outputs that should occur from the assigner.- Parameters:
outputs- theOutputEnabledMutableto add the default outputs to.
-