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:AssignPriority
Assigns a priority to an edge between two objects.- Specified by:
assignPriorityToEdge
in classAssignPriority
- Parameters:
source
- the sourceObjectVertex
destination
- the destinationObjectVertex
merged
- the mergedObjectMask
errorReporter
- theErrorReporter
for reporting errors- Returns:
- a
PrioritisedVertex
with an assigned priority - Throws:
OperationFailedException
- if the priority assignment fails
-