Class AssignPriorityFromImprovement
Object
AssignPriority
AssignPriorityFromImprovement
Allows merges if there is an increase in the payload i.e.
i.e. if payload(merged) >= avg( payload(src), payload(dest)
Prioritises merges in order of greatest improvement.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignPriorityToEdge(ObjectVertex source, ObjectVertex destination, ObjectMask merged, ErrorReporter errorReporter) Assigns a priority to an edge between two objects.Methods inherited from class org.anchoranalysis.plugin.image.object.merge.priority.AssignPriority
assignPriority
-
Constructor Details
-
AssignPriorityFromImprovement
-
-
Method Details
-
assignPriorityToEdge
public PrioritisedVertex assignPriorityToEdge(ObjectVertex source, ObjectVertex destination, ObjectMask merged, ErrorReporter errorReporter) throws OperationFailedException Description copied from class:AssignPriorityAssigns a priority to an edge between two objects.- Specified by:
assignPriorityToEdgein classAssignPriority- Parameters:
source- the sourceObjectVertexdestination- the destinationObjectVertexmerged- the mergedObjectMaskerrorReporter- theErrorReporterfor reporting errors- Returns:
- a
PrioritisedVertexwith an assigned priority - Throws:
OperationFailedException- if the priority assignment fails
-