public class MergePairs extends MergeWithFeature
The pair feature is calculated on all combinations of any two neighboring objects (but only once for each pair, unidirectionally).
The merges occur in order of the maximum increase offered (if the value exceeds the threshold), and the algorithm recursively merge until all possible merges are complete.
MergeBase.MergeObjects
Constructor and Description |
---|
MergePairs() |
Modifier and Type | Method and Description |
---|---|
protected PayloadCalculator |
createPayloadCalculator()
Determines the payload for any given or potential vertex
|
protected AssignPriority |
createPrioritizer()
Determines the priority (and selection criteria) used to allow merges between neighbors
|
FeatureEvaluator<FeatureInputPairObjects> |
getFeatureEvaluatorMerge() |
FeatureEvaluator<FeatureInputNull> |
getFeatureEvaluatorThreshold()
Allows merge only if the feature-value satisfies a relation to this threshold
|
RelationBean |
getRelation()
Relation to threshold
|
protected boolean |
isPlayloadUsed()
Is the payload considered in making decisions? (iff false, payload of nodes is irrelvant)
|
void |
setFeatureEvaluatorMerge(FeatureEvaluator<FeatureInputPairObjects> featureEvaluatorMerge) |
void |
setFeatureEvaluatorThreshold(FeatureEvaluator<FeatureInputNull> featureEvaluatorThreshold)
Allows merge only if the feature-value satisfies a relation to this threshold
|
void |
setRelation(RelationBean relation)
Relation to threshold
|
createFromObjects, isRequireBBoxNeighbors, isRequireTouching, setRequireBBoxNeighbors, setRequireTouching
getMaxDistance, isSuppressZ, maybeDistanceCondition, setMaxDistance, setSuppressZ
getDimensions, mergeMultiplex, resolutionRequired, setDimensions, unitConvertOptional
containerOptional, containerRequired, getObjectsContainer, setObjectsContainer
get, getObjects, setObjects
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected PayloadCalculator createPayloadCalculator()
MergeWithFeature
createPayloadCalculator
in class MergeWithFeature
protected AssignPriority createPrioritizer() throws OperationFailedException
MergeWithFeature
createPrioritizer
in class MergeWithFeature
OperationFailedException
protected boolean isPlayloadUsed()
MergeWithFeature
isPlayloadUsed
in class MergeWithFeature
public FeatureEvaluator<FeatureInputNull> getFeatureEvaluatorThreshold()
public void setFeatureEvaluatorThreshold(FeatureEvaluator<FeatureInputNull> featureEvaluatorThreshold)
public RelationBean getRelation()
public void setRelation(RelationBean relation)
public FeatureEvaluator<FeatureInputPairObjects> getFeatureEvaluatorMerge()
public void setFeatureEvaluatorMerge(FeatureEvaluator<FeatureInputPairObjects> featureEvaluatorMerge)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.